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

Gallery shows double pictures all over the place.

fixed
Topic Locked
UserPost

3:50 am
August 28, 2010


globotreks

Guest

1

Hi – I just installed the DCG on a dummy blog I just created http://www.wannagobackpacking.com
It is my testing place for all the changes I want to do to my real blog http://www.globotreks.com

I'm using WP 3.0 and I'm using a woothemes theme (canvas)

I have tried a couple times to have the DCG on the blog posts page (I installed it in the template-blog.php) but it shows as double pictures all over the place… not as a single carousel. Like in this page http://wannagobackpacking.com/?page_id=12

I have tried that in my "real" blog too, and it does the same. It has just worked correctly on static pages.

How can I add it correctly to the blog page? I want to show the gallery above all the posts extracts.

2:16 pm
August 29, 2010


Ade

Admin

posts 2384

2

Post edited 2:17 pm – August 29, 2010 by Ade


Hi,

looking at your page Source, I can't see the javascript loaded into the header. Assuming you have installed the plugin correctly, check that your theme's header.php contains this code:

<?php wp_head(); ?>

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

3:50 pm
August 30, 2010


globotreks

Guest

3

Hi –

I just checked at the header.php at http://www.wannagobackpacking.com and it does contain the

<?php wp_head(); ?>

code.

It looks like this
… lots of code before

<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
<?php woo_head(); ?>

</head>

… lots of code after

What could be making the DCG not show as a gallery when I place it on a blog page? Could it be the placement of the code?

Thanks

9:01 pm
August 30, 2010


Ade

Admin

posts 2384

4

Post edited 9:02 pm – August 30, 2010 by Ade


Hi,

Yep, the code is there in your header.php.

Can you post your blog page code?

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

9:17 pm
August 30, 2010


globotreks

Guest

5

Sure, this is how my template-blog.php looks like

<?php
/*
Template Name: Blog
*/
?>
<?php get_header(); ?>

<?php global $woo_options; ?>

<!– #content Starts –>
<?php woo_content_before(); ?>
<div id="content" class="col-full">
<?php dynamic_content_gallery(); ?>
<div id="main-sidebar-container">

<!– #main Starts –>
<?php woo_main_before(); ?>
<div id="main">

<?php
// WP 3.0 PAGED BUG FIX
if ( get_query_var('paged') )
$paged = get_query_var('paged');
elseif ( get_query_var('page') )
$paged = get_query_var('page');
else
$paged = 1;
//$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

query_posts("paged=$paged");
?>
<?php if (have_posts()) : $count = 0; ?>
<?php while (have_posts()) : the_post(); $count++; ?>

<!– Post Starts –>
<?php woo_post_before(); ?>
<div <?php post_class(); ?>>

<?php woo_post_inside_before(); ?>

<?php woo_image('width='.$woo_options['woo_thumb_w'].'&height='.$woo_options['woo_thumb_h'].'&class=thumbnail '.$woo_options['woo_thumb_align']); ?>

<h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>

<?php woo_post_meta(); ?>

<div class="entry">
<?php global $more; $more = 0; ?>
<?php the_excerpt(); ?>
</div>

<?php woo_post_inside_after(); ?>

</div><!– /.post –>
<?php woo_post_after(); ?>

<?php endwhile; else: ?>
<div class="post">
<p><?php _e('Sorry, no posts matched your criteria.', 'woothemes') ?></p>
</div><!– /.post –>
<?php endif; ?>

<?php woo_pagenav(); ?>

</div><!– /#main –>
<?php woo_main_after(); ?>

<?php get_sidebar(); ?>

</div><!– /#main-sidebar-container –>

<?php get_sidebar('alt'); ?>

</div><!– /#content –>
<?php woo_content_after(); ?>

<?php get_footer(); ?>

Is this what you wanted?

Thanks

4:34 pm
September 14, 2010


globotreks

Guest

6

Hi – It's been a while since I pasted the code in the previous message. Is that what you need?

Thanks

8:13 pm
September 14, 2010


Ade

Admin

posts 2384

7

Hi,

Oops! Missed your post… Sorry!

OK, go to the plugin's Settings page, Restrict Scripts, select Page Template option and enter template-blog.php in the input field.

That should do it.

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

6:55 am
September 15, 2010


globotreks

Guest

8

Thanks! It worked. :)

10:35 am
September 15, 2010


Ade

Admin

posts 2384

9

Great! Smile

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