[Plugin: Types – Custom Fields and Custom Post Types Management] No Custom Posts on Author summary p
-
Hi,
There are no custom posts showing on the Author’s summary page, even though the author created a custom post.
Now I had to add this code to my functions.php to get custom posts to show in the main index blog feed
// add Articles custom post type to home page feed
add_filter( 'pre_get_posts', 'my_get_posts' );
function my_get_posts( $query ) {
if ( ( is_home() && false == $query->query_vars['suppress_filters'] ) || is_feed() )
$query->set( 'post_type', array( 'post', 'article' ) );return $query;
}Is there something similar I have to do to have custom post show up on the author’s page?
Thanks. I do really like this module btw.
M
- The topic ‘[Plugin: Types – Custom Fields and Custom Post Types Management] No Custom Posts on Author summary p’ is closed to new replies.