StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 12-04-2009, 12:33 AM
jimbozs2000 jimbozs2000 is offline
Registered User
Pro Plus Member
 
Join Date: Feb 2009
Posts: 116
Default

Can You Highlight the exact code im gona delete, I dont want to delete anything to mess the site up, I think I know but I want to be really sure

<div id="homepage">

<?php // checks to see if the Featured Content Gallery plguin is enabled - if it isn't, nothing will diplay ?>
<?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; ?>
<?php // end ?>
<div id="homepageleft">



<div class="hpfeatured">
<h3><?php echo cat_id_to_name(get_theme_mod('featured_top_left')) ; ?></h3>

<?php $recent = new WP_Query("cat=".get_theme_mod('featured_top_left') ."&showposts=".get_theme_mod('featured_top_left_nu m')); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img class="thumb" src="<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&amp;h=<?php echo get_theme_mod('featured_top_left_thumb_height'); ?>&amp;w=<?php echo get_theme_mod('featured_top_left_thumb_width'); ?>&amp;zc=1" alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<?php endif; ?>

<strong><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></strong>
<?php the_content_limit(80, ""); ?>

<hr/>

<?php endwhile; ?>

<?php if(get_theme_mod('featured_top_left')) : ?>
<strong><a href="<?php echo get_category_link(get_theme_mod('featured_top_left ')); ?>" rel="bookmark"><?php _e("Read more posts from ", 'studiopress'); echo get_cat_name(get_theme_mod('featured_top_left')); ?></a></strong>
<?php endif; ?>

</div>

</div>

<div id="homepageright">

<div class="hpfeatured">
<h3><?php echo cat_id_to_name(get_theme_mod('featured_top_right') ); ?></h3>

<?php $recent = new WP_Query("cat=".get_theme_mod('featured_top_right' )."&showposts=".get_theme_mod('featured_top_right_ num')); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img class="thumb" src="<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&amp;h=<?php echo get_theme_mod('featured_top_right_thumb_height'); ?>&amp;w=<?php echo get_theme_mod('featured_top_right_thumb_width'); ?>&amp;zc=1" alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<?php endif; ?>

<strong><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></strong>
<?php the_content_limit(80, ""); ?>

<hr/>

<?php endwhile; ?>

<?php if(get_theme_mod('featured_top_right')) : ?>
<strong><a href="<?php echo get_category_link(get_theme_mod('featured_top_righ t')); ?>" rel="bookmark"><?php _e("Read more posts from ", 'studiopress'); echo get_cat_name(get_theme_mod('featured_top_right')); ?></a></strong>
<?php endif; ?>

</div>

</div>

<div id="homepagebottom">

<div class="hpbottom">
<h3><?php echo cat_id_to_name(get_theme_mod('featured_bottom')); ?></h3>

<?php $recent = new WP_Query("cat=".get_theme_mod('featured_bottom')." &showposts=".get_theme_mod('featured_bottom_num')) ; while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img class="thumb" src="<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&amp;h=<?php echo get_theme_mod('featured_bottom_thumb_height'); ?>&amp;w=<?php echo get_theme_mod('featured_bottom_thumb_width'); ?>&amp;zc=1" alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<?php endif; ?>

<strong><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></strong>
<?php the_content_limit(350, __("[Read more of this review]", 'studiopress')); ?>

<hr/>

<?php endwhile; ?>

<?php if(get_theme_mod('featured_bottom')) : ?>
<strong><a href="<?php echo get_category_link(get_theme_mod('featured_bottom') ); ?>" rel="bookmark"><?php _e("Read more posts from ", 'studiopress'); echo get_cat_name(get_theme_mod('featured_bottom')); ?></a></strong>
<?php endif; ?>

</div>

</div>

</div>

<?php get_sidebar(); ?>
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing catagory names.. rebyjay1 General Discussion 2 07-03-2009 12:27 AM
Changing Catagory sequence monikagraff General Discussion 1 04-02-2009 10:56 AM
Remove catagory from Sub-Nav Steve@316 General Discussion 3 02-16-2009 10:50 AM
Featured catagory markus66 General Discussion 2 02-09-2009 03:29 PM


All times are GMT -5. The time now is 06:54 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.