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