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

Images from gallery showing up in categories

fixed
UserPost

10:43 pm
December 25, 2009


blogmaybe

Member

posts 3

1

Post edited 10:44 pm – December 25, 2009 by blogmaybe


Hey, I have set up the DCG and have it working flawlessly. The only problem is that if I click on an article or category the images from the DCG show twice above the content. Here's a link to my test site http://www.scape-arts.com . If i set the settings to use JQuery only one of each of the images show.

11:36 pm
December 25, 2009


Ade

Admin

posts 1229

2

Hi,

This is probably because you have added the DCG code to index.php, but you haven't restricted its display to the home page. Index.php is often used to display other post views apart from the home page, so you need to add Conditional tags.

Take a look at this FAQ.

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

11:40 pm
December 25, 2009


blogmaybe

Member

posts 3

3

Post edited 11:43 pm – December 25, 2009 by blogmaybe


Im sorry I should have added that I am using thesis lol. Here is my code from custom functions if it helps at all 

function feature_box_slide () {

?>

<div id="dfcg-wrapper">

<?php dynamic_content_gallery(); ?>

</div>

<?php }

add_action('thesis_hook_before_content','feature_box_slide');

11:46 pm
December 25, 2009


Ade

Admin

posts 1229

4

The same advice applies…

Replace this:

<?php dynamic_content_gallery(); ?>

with this:

<?php if( is_home() ) {

dynamic_content_gallery();

} ?>

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

12:00 am
December 26, 2009


blogmaybe

Member

posts 3

5

lol alright that worked. I must have deleted that at_home code when I was taking out global $post; and didn't notice it. Thanks a lot.

12:29 am
December 26, 2009


Ade

Admin

posts 1229

6

No problem. Glad it's fixed. Smile

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