WordPress.org

Forums

Twenty Fourteen
[resolved] static front page - show latest posts (3 posts)

  1. Trisha.Blogs
    Member
    Posted 1 year ago #

    Hi,
    I am currently using the twenty fourteen theme with Grid layout.

    I have some featured posts that are appearing in the Grid layout but not appearing under the latest posts section of my main page.

    I would like these featured posts to appear on both the grid layout and the latest posts section.

    I do not want to make the featured post a "sticky" because that would cover my future posts.

    In summary, is there a solution where i can make all types of latest posts (including featured posts) appear on my main page?

    Appreciate your help!

    Regards,
    Trisha

  2. Hi Trisha, the best way to make changes to a theme is to use a child theme, so your tweaks won't be overwritten when updating the theme. Here are some guides in case you haven't made one before:

    http://codex.wordpress.org/Child_Themes
    http://op111.net/53/
    http://vimeo.com/49770088

    In your child theme folder, create a new plain-text file called functions.php and add this function within PHP tags:

    <?php
    	function fourteen_child_remove_pre_get_posts() {
    	remove_action( 'pre_get_posts', array( 'Featured_Content', 'pre_get_posts' ) );
    }
    add_action( 'init', 'fourteen_child_remove_pre_get_posts', 31 );
    ?>

    This should remove the function that by default excludes featured content posts from the main blog stream below the slider/grid.

    Let me know how it goes.

  3. lpalli
    Member
    Posted 1 year ago #

    This function as been integrated in the "Fourteen Extended" plugin (http://wordpress.org/plugins/fourteen-extended).

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic