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
  #1  
Old 10-14-2012, 09:21 AM
bandj bandj is offline
Registered User
Pro Plus Member
 
Join Date: Apr 2009
Location: Northern Wisconsin, area called the Northwoods
Posts: 712
Default remove post image everywhere except on blog

I added this to the functions.php at http://studio55design.com

/** Customize the post image function */
add_filter( 'genesis_post_content', 'post_image_filter' );
function post_image_filter() {
if (! is_category( '14' )) {
remove_action( 'genesis_post_content', 'genesis_do_post_image' );
}
}

It works pretty much, it lets the blog page (which only has 1 category #14), but it also leaves one double image here http://studio55design.com/portfolio/ and here http://studio55design.com/portfolio2/ but only on the first image. Any ideas why it doesn't work on the 1st image?
__________________
Bill
http://studio55design.com
http://absotivelydogs.com
 

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 05:27 AM.

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