View Single Post
  #5  
Old 05-22-2009, 12:27 PM
Darlene Darragh Darlene Darragh is offline
Registered User
Pro Plus Member
 
Join Date: Mar 2009
Posts: 544
Default Featured Content Gallery plugin displaying white box

I am still trying to resolve the Featured Content Gallery plugin.

I deactivated every plugin except Featured Gallery but the white box and it being loaded with an error still occurs. I took out all post numbers and entered the 4 original pictures that worked way back and it still loads with an error.

Could the problem be with code in one of my lifestyle files.

Below is the code for my home.php file. I don't know if any other file is used to make this area of the template work. Can you let me know if there is an issue you can see with the code or any other code in the Lifestyle files I should be looking at to get this to work. I did add some extra hpbottoms to display on the home page.

Thanks

Darlene
----

<?php get_header(); ?>

<div id="content">

<div id="homepage">

<?php /*Check for the 'gallery_styles' function. if it's there, then include it. If not, do nothing*/ ?>
<?php if (function_exists('gallery_styles')) : ?>

<div id="homepagetop">

<div class="featuredtop">

<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>

</div>

</div>

<?php endif; ?>

<div id="homepageleft">

<div class="hpfeatured">
<?php $feature_cat_1 = get_option('lifestyle_feature_cat_1'); $feature_cat_1_num = get_option('lifestyle_feature_cat_1_num'); if(!$feature_cat_1) $feature_cat_1 = 1; //setting a default ?>
<h3><?php echo cat_id_to_name($feature_cat_1); ?></h3>



<?php $recent = new WP_Query("cat=".$feature_cat_1."&showposts=".$feat ure_cat_1_num); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
[img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" />
<?php else: ?>
<?php endif; ?>
<?php the_title(); ?>
<?php the_content_limit(80, ""); ?>

<div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>

<?php endwhile; ?>

Read More Posts From This Category

</div>

</div>

<div id="homepageright">

<div class="hpfeatured">
<?php $feature_cat_2 = get_option('lifestyle_feature_cat_2'); $feature_cat_2_num = get_option('lifestyle_feature_cat_2_num'); if(!$feature_cat_2) $feature_cat_2 = 2; //setting a default ?>
<h3><?php echo cat_id_to_name($feature_cat_2); ?></h3>



<?php $recent = new WP_Query("cat=".$feature_cat_2."&showposts=".$feat ure_cat_2_num); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
[img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" />
<?php else: ?>
<?php endif; ?>
<?php the_title(); ?>
<?php the_content_limit(80, ""); ?>

<div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>

<?php endwhile; ?>

Read More Posts From This Category

</div>

</div>

<div id="homepagebottom">

<div class="hpbottom">
<?php $feature_cat_3 = get_option('lifestyle_feature_cat_3'); $feature_cat_3_num = get_option('lifestyle_feature_cat_3_num'); if(!$feature_cat_3) $feature_cat_3 = 3; //setting a default ?>
<h3><?php echo cat_id_to_name($feature_cat_3); ?></h3>



<?php $recent = new WP_Query("cat=".$feature_cat_3."&showposts=".$feat ure_cat_3_num); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "hpbottom", true) ): ?>
[img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" />
<?php else: ?>
<?php endif; ?>
<?php the_title(); ?>
<?php the_content_limit(120, "[Read more of this review]"); ?>

<div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>

<?php endwhile; ?>

Read More Posts From This Category

</div>

<div class="hpbottom">
<?php $feature_cat_5 = get_option('lifestyle_feature_cat_5'); $feature_cat_5_num = get_option('lifestyle_feature_cat_5_num'); if(!$feature_cat_5) $feature_cat_5 = 5; //setting a default ?>
<h3><?php echo cat_id_to_name($feature_cat_5); ?></h3>



<?php $recent = new WP_Query("cat=".$feature_cat_5."&showposts=".$feat ure_cat_5_num); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "hpbottom", true) ): ?>
[img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" />
<?php else: ?>
<?php endif; ?>
<?php the_title(); ?>
<?php the_content_limit(120, "[Read more of this review]"); ?>

<div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>

<?php endwhile; ?>

Read More Posts From This Category

</div>

<div class="hpbottom">
<?php $feature_cat_7 = get_option('lifestyle_feature_cat_7'); $feature_cat_7_num = get_option('lifestyle_feature_cat_7_num'); if(!$feature_cat_7) $feature_cat_7 = 7; //setting a default ?>
<h3><?php echo cat_id_to_name($feature_cat_7); ?></h3>



<?php $recent = new WP_Query("cat=".$feature_cat_7."&showposts=".$feat ure_cat_7_num); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "hpbottom", true) ): ?>
[img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" />
<?php else: ?>
<?php endif; ?>
<?php the_title(); ?>
<?php the_content_limit(120, "[Read more of this review]"); ?>

<div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>

<?php endwhile; ?>

Read More Posts From This Category

</div>
<div class="hpbottom">
<?php $feature_cat_9 = get_option('lifestyle_feature_cat_9'); $feature_cat_9_num = get_option('lifestyle_feature_cat_9_num'); if(!$feature_cat_9) $feature_cat_9 = 9; //setting a default ?>
<h3><?php echo cat_id_to_name($feature_cat_9); ?></h3>



<?php $recent = new WP_Query("cat=".$feature_cat_9."&showposts=".$feat ure_cat_9_num); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "hpbottom", true) ): ?>
[img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" />
<?php else: ?>
<?php endif; ?>
<?php the_title(); ?>
<?php the_content_limit(120, "[Read more of this review]"); ?>

<div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>

<?php endwhile; ?>

Read More Posts From This Category

</div>

<div class="hpbottom">
<?php $feature_cat_11 = get_option('lifestyle_feature_cat_11'); $feature_cat_11_num = get_option('lifestyle_feature_cat_11_num'); if(!$feature_cat_11) $feature_cat_11 = 11; //setting a default ?>
<h3><?php echo cat_id_to_name($feature_cat_11); ?></h3>



<?php $recent = new WP_Query("cat=".$feature_cat_11."&showposts=".$fea ture_cat_11_num); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "hpbottom", true) ): ?>
[img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" />
<?php else: ?>
<?php endif; ?>
<?php the_title(); ?>
<?php the_content_limit(120, "[Read more of this review]"); ?>

<div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>

<?php endwhile; ?>

Read More Posts From This Category

</div>

</div>

</div>

<?php include(TEMPLATEPATH."/sidebar.php");?>

</div>



<?php get_footer(); ?>

------