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
  #3  
Old 09-25-2012, 01:50 PM
KHCreative KHCreative is offline
Registered User
Pro Plus Member
 
Join Date: Jul 2012
Posts: 43
Default

OK, if figured out how to get the excerpt to show for "posts" and the content for custom post types using this code:
PHP Code:
remove_action('genesis_loop''genesis_do_loop');
add_action('genesis_loop''custom_do_cat_loop');
    function 
custom_do_cat_loop() {
        global 
$query_args$paged;  // any wp_query() args
        
$args = array('post_type' => array( 'post''schedule''news''quote''recommendation' ),  
                
'paged' => $paged );
        
genesis_custom_loop(wp_parse_args($query_args$args));
    }  

function 
child_do_content() { 
        if ( 
'schedule' == get_post_type() or 'news' == get_post_type() or 'recommendation' == get_post_type() or 'quote' == get_post_type() ) {
            
add_action'genesis_before_post_content''genesis_post_info' );
            
the_content(); 
            
remove_action'genesis_post_content''genesis_do_post_image' );
            
remove_action('genesis_after_post_content''genesis_post_meta');
            }
    } 
My problem now is that somehow this code is causing the image attached to the post (in the gallery but not inserted into the post or used as feature image) to show up on this page. If you go to the single post page, there is not image showing. So, if you add an image to a post, the image in the post shows and then the same image from the image gallery shows. So you get the same image twice.

I'm trying to discover why that is. Anyone have any suggestions?

Thanks in advance,
Keith
 

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
Include featured image on blog, but not on CPTs 9seeds General Discussion 1 04-29-2012 10:19 PM
Filter the_content? Herrnilsson General Discussion 2 03-15-2010 06:54 AM


All times are GMT -5. The time now is 04:32 PM.

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