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

Please help. My normal posts aren't ordering correctly under gallery.

fixed
UserPost

8:57 pm
February 16, 2010


godistherefore

Member

posts 4

1

Hi,

First, wonderful plugin–thank you! Great job. It has made all the difference on my site: http://godistherefore.com (currently using WP 2.9.1

I have two problems: I would like to have some margin between my DCG and my normal posts. Right now they are touching and it looks odd to me.

Mainly, I have a post ordering problem. I currently have 6 posts/pictures in my gallery and below that I have thumbnailed normal posts. I would like to be able to keep the freedom to change the number of posts in the gallery, but I also need the posts underneath to be ordered properly–latest first. Right now my lastest post ONLY shows in the gallery and the last post in the gallery (currently post 6) shows up FIRST underneath the gallery and then again in position 6 on the homepage. My latest post should show in the first position. Hope this makes sense. Any help would be greatly appreciated! Laugh

Thank you again for such a nice plugin!

Susan

11:05 pm
February 16, 2010


Ade

Admin

posts 1140

2

Susan,

Glad you like the plugin.

1. CSS issue – I can't see what you're describing in FF3. Looks fine to me.

2. Posts issue – please always provide details of gallery method, categories selected etc. How have you added the DCG to your theme?

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

11:23 pm
February 16, 2010


godistherefore

Member

posts 4

3

Hi Ade, Sorry about not giving all the info you need.

I added DCG to my index.php. I actually just did a trial and error of where to put it and ended up with it in the right spot. Btw, I have the padding issue handled, yes, CSS. Thanks.

I'm using the One Category Gallery Method, but I have all categories selected. Is there anything else you need to know?

Thanks!

Susan

8:31 am
February 17, 2010


Ade

Admin

posts 1140

4

Can you post your index.php?

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

8:34 am
February 17, 2010


godistherefore

Member

posts 4

5

I hope this is what you mean–to copy and paste it here?

<?php get_header(); ?>
<?php if (is_paged()) $is_paged = true; ?>
        <div id="centercol" class="grid_10">
            <?php // Get Options
                $feat_posts = get_option('woo_featured_posts');
                $feat_width = get_option('woo_feat_image_width');
                $feat_height = get_option('woo_feat_image_height');
                $content_feat = get_option('woo_content_feat');
                $home_onecol = get_option('woo_home_one_col');
                $thumb_width = get_option('woo_thumb_image_width');
                $thumb_height = get_option('woo_thumb_image_height');
                $main_content = get_option('woo_content');
            ?>
            <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts("cat=-".$GLOBALS[video_id].",-".$GLOBALS[asides_id]."&paged=$paged"); ?>
            <?php if (have_posts()) : $count = 0; ?>
            <?php while (have_posts()) : the_post(); $postcount++;?>
<?php dynamic_content_gallery(); ?>
                   <br/>
            
            <!– Featured Starts –>
            <?php if ( $postcount <= $feat_posts && !$is_paged ) { ?>
            
            <div class="box">
                        
                <div class="featuredpost">
            
                <?php woo_get_image('image',$feat_width,$feat_height,'feat-image'); ?>
                           
                <div class="date-comments">
                    <p class="fl"><?php the_time('j. F Y'); ?></p>
                    <p class="fr"><span class="comments"></span><?php comments_popup_link(__('0 Comments',woothemes), __('1 Comment',woothemes), __('% Comments',woothemes)); ?></p>
                </div>
        
                <h2><a title="<?php _e('Permanent Link to',woothemes); ?> <?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
                
                <div class="entry">
                <?php if ( $content_feat == "true" ) { the_content('[...]'); } else { the_excerpt(); ?><?php } ?>
                </div>                
             
                
                <div class="fix"></div>
                
                </div><!–/featuredpost –>
                                
            </div><!–/box –>
            
            <?php continue; } ?>
            <!– Featured Ends –>          

            <?php $counter++; $counter2++; ?>
        
            <?php if ( !$is_paged && $home_onecol == "false" )  { ?><div class="grid_5 <?php if ($counter == 1) { echo 'alpha'; } else { echo 'omega'; $counter = 0; } ?>"><?php } ?>
            
                <div class="box">
                                
                    <div class="date-comments">
                        <p class="fl"><?php the_time('j. F Y'); ?></p>
                    <p class="fr"><span class="comments"></span><?php comments_popup_link(__('0 Comments',woothemes), __('1 Comment',woothemes), __('% Comments',woothemes)); ?></p>
                    </div>
                    
                    <h2><a title="<?php _e('Permanent Link to',woothemes); ?> <?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>            

                    <?php woo_get_image('image',$thumb_width,$thumb_height,'post-thumbnail'); ?>
                    
                    <div class="entry">
                    <?php if ( $main_content == "true" ) { the_content('[...]'); } else { the_excerpt(); ?><?php } ?>
                    </div>                                        
                    <span class="continue"><a title="<?php _e('Permanent Link to',woothemes); ?> <?php the_title(); ?>" href="<?php the_permalink() ?>"><?php _e('Continue reading…',woothemes); ?></a></span>
        
                    <div class="fix"></div>
                </div> <!– end .box –>        
                 
            <?php if ( !$is_paged && $home_onecol == "false" )  { ?></div> <!– end .grid5 –><?php } ?>
            
            <?php if ( $counter == 0 )  { ?> <div class="fix"></div> <?php } ?>    
                    
            <?php endwhile; ?>
            <?php endif; ?>
            
            <div class="fix"></div>

            <div class="more_entries wrap">
                <?php if (function_exists('wp_pagenavi')) wp_pagenavi(); else { ?>
                <div class="fl"><?php previous_posts_link(__('&laquo; Newer Entries ',woothemes)) ?></div>
                <div class="fr"><?php next_posts_link(__(' Older Entries &raquo;',woothemes)) ?></div>
                <br class="fix" />
                <?php } ?>
            </div>
                   
        </div><!–/centercol–>

<?php get_sidebar(); ?>

<?php get_footer(); ?>

8:40 am
February 17, 2010


Ade

Admin

posts 1140

6

Yes, that's what I meant. :-)

The problem is that the DCG template code has been placed within the Loop – it must be outside the Loop. Therefore move this:

<?php dynamic_content_gallery(); ?>

to just below this line:

<div id="centercol" class="grid_10″>

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

8:47 am
February 17, 2010


godistherefore

Member

posts 4

7

It worked! Perfect! Oh thank you thank you thank you! And btw, that little "select code" button rocks.

I did get my other question answered by Woo about adding the <br/> to get some margin under the gallery, but I don't know how to make it even so that both columns of posts have the same amount of space. Once they answer that I'll be good to go! Thanks again, Ade. I love it when others give away their gifts. I hope those who can afford it pay you well. I wish I could give you a big fat donation. My gratitude is full, but my bank account…not so much. :)

Susan

12:43 am
February 18, 2010


Ade

Admin

posts 1140

8

Susan,

Great! Glad it worked. Smile

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