Support » Plugin: Sermon Manager » Sermon posts on front page

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author wpforchurch

    (@wpforchurch)

    Since sermons are quite different from regular posts, they are not intended to be in the blog listing. You can do it though by adding this to your theme’s functions.php:

    add_filter( 'pre_get_posts', 'my_get_posts' );
    
    function my_get_posts( $query ) {
    	if ( is_home() && $query->is_main_query() )
    		$query->set( 'post_type', array( 'post', 'wpfc_sermon' ) );
    	return $query;
    }

    Reference: http://justintadlock.com/archives/2010/02/02/showing-custom-post-types-on-your-home-blog-page

    Thanks, I tried that (that very link in fact) but it didn’t work. I suspect because of the complexity of the theme I’m using. I’ll have some time to think about this more deeply in the next couple of days.

    Cheers, Greg.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sermon posts on front page’ is closed to new replies.