• Resolved Trisha.Blogs

    (@trishablogs)


    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘static front page – show latest posts’ is closed to new replies.