• Trying to display blog posts on the main page and on a separate page called blog. http://giantfox.com/blog

    I added the code from the post below to my child theme functions.php, but don’t see any posts displayed on the blog page.

    https://wordpress.org/support/topic/how-to-add-a-blog-template-for-customizr?replies=36

    d4z_c0nf:

    add_action(‘__before_loop’, ‘my_blog_page’, 5);
    function my_blog_page($query){
    if ( ! is_page(‘blog’) ){ //assuming ‘blog’ is the page slug of the page you want to be your blog page
    return;
    }
    query_posts(‘post_type=post&paged=’. get_query_var(‘paged’));
    add_action(‘__after_article_container’, ‘wp_reset_query’, 5);
    }

  • The topic ‘Customizr: display blog posts on the main page and on a separate blog page’ is closed to new replies.