home forums resources search newsjoinmembers: 5949
Main Network: Joomla Wordpress Drupal Drupal.se Fireorb Flash Java PHP Ruby Windows Linux
 videos
 articles
 blogs
 comments
 downloads
sitemap
Hiveminds | Thu, 2006-02-16 17:45  tags:

Create a sitemap or category structure

index.php
8-books
9-mp3s
10-games
11-tricks and tips
12-hardware
13-accessories

Create the pages for each section or category

books.php
mp3.php
games.php
trickstips.php
hardware.php
accesories.php

Using the following code and changing the category number to suit in each page. The code below would correspond to the "books" catogory.


<?php
$blog 
1;
$cat="8";
require(
'./wp-blog-header.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="eng">
<head profile="http://gmpg.org/xfn/1">

Program in the categories in to Wordpress index.php


<?php
$cat
="1 2 3 4 5 6 7";
require(
'./wp-blog-header.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="eng">
<head profile="http://gmpg.org/xfn/1">
<?php
// further down in the index.php you want to exclude the new
// categories from the main index
wp_list_cats('exclude=8,9,10'); 
?>

printer-friendly version

Hiveminds's picture
This article brought to you by the Hiveminds Magazine - Staff. Contact us if you want to post an article or announcement anonymously
 
 

Newsletter

Get updates on Hiveminds services, articles and downloads by signing up for the newsletter.

Editor's choice

Some of the better articles, stories and tutorials found at Hiveminds.

Find more

Find more of Hiveminds articles, stories, tutorials and user comments by searching.




Picked links

Hand picked websites and articles from around the web that provide quality reading.

page top