Forum

Please make sure that you have read the documentation and extensive resources provided on this site before posting your question!

Dynamic Content Gallery Resources

DCG Version 4.0 beta is now available for download and testing. This is a development version and not recommended for live sites. Read more here.

Note that the current stable release of the DCG is version 3.3.5.

 
You must be logged in to post Login Register


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 3 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

serial in sidebar

UserPost

3:58 am
February 9, 2010


webwriter

Guest

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 2378

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

Guest

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 2378

4

Great! Looks good to me. Smile

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