Viewing 9 replies - 1 through 9 (of 9 total)
  • Go to Customiz’it! > Front Page
    Front Page can point to either a Static Page or your Latest Posts. So there are a few combinations that can be set (Home & Blog refer to Pages):
    1) Front page displays: Don’t show any posts or page
    2) Front page displays: your latest posts =Displays posts
    3) Front page displays: A static Page
    Posts page: –Select–
    Front page: –Select– =Displays posts
    4) Front page displays: A static Page
    Posts page: –Select–
    Front page: Home =Displays static page
    5) Front page displays: A static Page
    Posts page: Blog
    Front page: –Select– =Displays posts
    6) Front page displays: A static Page
    Posts page: Blog
    Front page: Home =Displays static page

    Thread Starter andypp

    (@andypp)

    Thank you, I guess my option would be number 6 but maybe I’m doing something wrong because I can’t find my blog in the “Posts page” menu. Do I need to set a new page as posts page and then select it?

    Create a Static Page called Blog (or something) but don’t add any code to it.

    Thread Starter andypp

    (@andypp)

    It’s still not working. This is what I did:

    1 created a static page named “Blog” and published it blank
    2 opened the customiz’it window
    3 in the front page section, I selected
    Front page displays: A static Page
    Posts page: Blog (the newly created blank static page)
    Front page: Home

    What I get is a front page showing the featured pages section and the Home page below. No posts.

    Hi Andy, did you find the solution? I am facing the problem as your exactly. Do you mind to share your solution? Thanks!

    Hi Andy, did you find the solution? I am facing the problem as your exactly. Do you mind to share your solution? Thanks!

    Start a new thread Adam please

    Thread Starter andypp

    (@andypp)

    Hi Adam, I couldn’t find a solution.

    One way to do this is to adapt the technique in this snippet that adds a widget after the header.

    In this case, we add a widget after the featured pages, as long as we’re on the home page.

    The php is:

    // Adds a widget area.
    if (function_exists('register_sidebar')) {
        register_sidebar(array(
        'name' => 'Extra Front Page Widget Area',
        'id' => 'extra-fp-widget-area',
        'description' => 'Extra widget area after the featured pages',
        'before_widget' => '<div class="widget my-extra-widget">',
        'after_widget' => '</div>',
        'before_title' => '<h2>',
        'after_title' => '</h2>'
        ));
    }
    
    // Place the widget area after the featured pages
    add_filter( 'tc_fp_block_display' , 'add_my_fp_widget_area' );
    function add_my_fp_widget_area($html) {
        ob_start();
        if ( tc__f('__is_home') ) {
        	dynamic_sidebar('Extra Front Page Widget Area');
        }
        $extra_html = ob_get_contents();
        ob_end_clean();
        return $html . $extra_html;
    }

    Read the snippet to understand the concepts / how to use.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Front page with static page AND latest posts’ is closed to new replies.