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 -- and this forum will be removed on July 1st, 2013.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
  #1  
Old 02-13-2012, 08:20 PM
lydp101 lydp101 is offline
Registered User
Genesis Member
 
Join Date: Jan 2012
Posts: 9
Exclamation Featured Post

Hello All,

I have a widget titled featured post on a sidebar menu. Does anyone know how to change that featured post? I looked at the home.php and I believe this to be the code that handles that portion (understand this was a theme modified by someone else and I've been tasked to fix it). I would like to be able to choose what featured post I want to show.

<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 $cat = get_category(get_theme_mod('featured_top_right')); ?>
<strong><a href="<?php echo get_category_link(get_theme_mod('featured_top_righ t')); ?>" rel="bookmark"><?php echo __("Read More Posts From ", 'studiopress')." ".$cat->name; ?></a></strong>

</div>

If anyone can offer any help that would be great thanks!
  #2  
Old 02-14-2012, 08:14 AM
NicktheGeek's Avatar
NicktheGeek NicktheGeek is offline
Forum Manager
 
Join Date: Feb 2010
Posts: 62,650
Default

This looks like one of the classic themes, please post a link to the site.
__________________
Nick "Fred and/or George Weasley" Croft
Designs by Nick the Geek
@Nick_theGeek on Twitter

Make web design easier, get FireBug for FireFox

Want to learn more about Genesis? Check out my Genesis Explained Series

  #3  
Old 02-15-2012, 10:48 AM
lydp101 lydp101 is offline
Registered User
Genesis Member
 
Join Date: Jan 2012
Posts: 9
Default

www.crimeprevention101.com
  #4  
Old 02-15-2012, 11:21 AM
NicktheGeek's Avatar
NicktheGeek NicktheGeek is offline
Forum Manager
 
Join Date: Feb 2010
Posts: 62,650
Default

Yes, that is church 4.0, you should have Church theme options that will let you change teh categories for each section.
__________________
Nick "Fred and/or George Weasley" Croft
Designs by Nick the Geek
@Nick_theGeek on Twitter

Make web design easier, get FireBug for FireFox

Want to learn more about Genesis? Check out my Genesis Explained Series

  #5  
Old 02-16-2012, 11:11 AM
lydp101 lydp101 is offline
Registered User
Genesis Member
 
Join Date: Jan 2012
Posts: 9
Default

Yes, I'm sorry if I wasn't clear. I do know the theme should have listed that before and I do see the setting for the theme unfortunately they are not changing. I can select click on save settings but nothing changes on the blog. So the widget where I have the featured post stays stagnet. Always the same one. Trying to see how I can make it select what I want it.
  #6  
Old 02-16-2012, 11:44 AM
NicktheGeek's Avatar
NicktheGeek NicktheGeek is offline
Forum Manager
 
Join Date: Feb 2010
Posts: 62,650
Default

Please see this thread
http://www.studiopress.com/support/s...ad.php?t=53275
__________________
Nick "Fred and/or George Weasley" Croft
Designs by Nick the Geek
@Nick_theGeek on Twitter

Make web design easier, get FireBug for FireFox

Want to learn more about Genesis? Check out my Genesis Explained Series

 

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


All times are GMT -5. The time now is 07:35 PM.

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