Featured Content Gallery | WordPress Plugin | iePlexus

Loop Improvement

New releases, ideas for the future, and known issues

Loop Improvement

PostBy vc27 on Thu May 14, 2009 11:10 pm

You've probably seen this, maybe not, but with out the added pieces below FCG Category spills out all over the rest of the page.
gallery.php lines 54,55,56

Before:
Code: Select all
<?php $temp_query = $wp_query; ?>
<?php query_posts('category_name=' . get_option('gallery-category') . '&showposts=' . get_option('gallery-items')); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>


After:
Code: Select all
<?php $temp_query = $wp_query; $wp_query = null; $wp_query = new WP_Query(); ?>
<?php $wp_query->query('category_name=' . get_option('gallery-category') . '&showposts=' . get_option('gallery-items')); ?>
<?php if ($wp_query->have_posts()) : while ($wp_query->have_posts()) : $wp_query->the_post(); ?>


Anyway, hope this work for others.
vc27
 
Posts: 1
Joined: Thu May 14, 2009 11:01 pm

Re: Loop Improvement

Thank you for using the Featured Content Gallery Forum
 

Return to Development, Improvement, and Conflicts

Who is online

Users browsing this forum: No registered users and 0 guests

cron