Categories

Need some help with the script?

Categories

Postby mrtn8844 » Thu Mar 18, 2010 5:14 pm

Please I need some help. I have 30 categories and I divided the page right and left column to show 4 short stories for diffrent 4 categories

------------------------------------------------------------
Title Category1 Title Category 2
Short Story | Short Story
|
|
------------------------------ | ------------------------
| Title category 4
Title Category 3 | Short Story
|
Short Story |
-------------------------------------------------------------

What I need is to show another 4 short story for another 4 categories instead of the first 4 and to be automatic.
Thanks in advance.
mrtn8844
 
Posts: 42
Joined: Mon Mar 01, 2010 5:59 am

Postby eberswine » Thu Mar 18, 2010 8:55 pm

Use the $skip variable in your include code:


just add it:
Code: Select all
......
$skip = '4';

?>
User avatar
eberswine
 
Posts: 281
Joined: Thu Apr 26, 2007 7:23 pm

Postby mrtn8844 » Thu Mar 18, 2010 9:40 pm

Hello eberswine,
Thanks for your reply, but $skip tells the script how many news you want to leave out. What I need is to let the script change the current 4 categories in my home page with another 4 categories as I have 30 categories.
mrtn8844
 
Posts: 42
Joined: Mon Mar 01, 2010 5:59 am


Return to Help



Who is online

Users browsing this forum: No registered users and 2 guests

cron