Support » Theme: Customizr » Posts on front-page as well as on posts page

  • Resolved eyeland


    Starting a new thread asthis one is old and didn’t solve my problem.
    I am fiddling with and I would like excerpts of the latest posts to show up on the front page below the featured pages – similar to what you see at
    I do however want to retain my post-page as well, so that visitors can reach a page listing the posts from the menu item “rejse-blog”.
    I want this because I fear that some visitors will fail to realize that there is more content below the featured pages 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • 1. Set your front page to display latest posts.
    2. Save this as blog.php and put it in your child theme folder:

    Template Name: Blog
    add_action('__before_loop', 'tc_blog_template_query');
    add_action('__after_loop', 'wp_reset_query', 9999, 0);
    function tc_blog_template_query() {
    	$paged = (get_query_var('paged') ? get_query_var('paged') : (get_query_var('page') ? get_query_var('page') : 1));

    3. Edit your blog page (the static one, other than homepage) and select “Blog” as template from Page Attributes Box.

    Note: this solution loads custom-page.php (generic boilerplate for custom page templates) and applies some actions to it on the fly. It assumes it has not been modified. I specifically wanted to load the template dynamically to ensure that you don’t lose any updates or additions to this template in future versions of the theme.

    Nice one, thanks a bunch, gonna try that one out tonight when I get home 🙂

    You’re welcome. Don’t forget to mark as resolved if it works.

    It kind of works with a few quirks and I have an odd issue.
    I was using:

    /* Remove Page Icon/Title
    .page .entry-title.format-icon {
    display:    none;

    but using it with the blog.php brings back the post-icon on the front-page and obviously hides the post title on the posts-page (not on the front-page)
    I now get the full blog post instead of the summary with feature circle. This Issue seems to be independent of the blog.php customization. (not sure if it was there before, but it remains after reverting the design)
    Shall I deal with with this issue in a separate thread? 🙂

    You need to remove .page from that CSS so it also works for posts. Now it only hides the icons for pages.

    If you want to list excerpts in the post list, you need to select this option from theme options, under Pages and Posts Layout.

    Once again, thanks for having the patience to help me with these issues that sometimes are so simple that I feel sooo foolish. I just hope that some other nuub can benefit from reading it as well 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Posts on front-page as well as on posts page’ is closed to new replies.