Forum

 
You must be logged in to post Login Register


Register? | Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

serial in sidebar

UserPost

3:58 am
February 9, 2010


webwriter

New Member

posts 2

1

Hi

I use the serial output in the sidebar and at the end of a post.

but as it is used in the sidebar it also shows up on the homepage.

because the last previes post shown on the page is part of a serial. but of cause i dont want to have the serial list here.

what can i do?

you can see it here http://www.webwriter.de

best regards peter

10:23 am
February 9, 2010


Ade

Admin

posts 1140

2

Peter,

How are you adding the Serial list to your sidebar?

Assuming you are using the template tag, you can wrap it in Conditional tags to prevent display on the home page, like this:

<?php
if( !is_home() ) {
    serial_posts();
} ?>

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?

1:54 pm
February 9, 2010


webwriter

New Member

posts 2

3

hi and thanks

this was what i was looking for

additionally i wanted to avoid it in the archiv pages so only show it on single post page.

and with your code i knew what i had to lookup as codex for wp

so i am using this

<?php
if( is_single()   ) {
    serial_posts();
} ?>

thank u very much

1:56 pm
February 9, 2010


Ade

Admin

posts 1140

4

Great! Looks good to me. Smile

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?