php - In Wordpress (Twentyfourteen, specifically) how can I have featured posts also shown in my post stream? -


i've set wordpress using twentyfourteen. i've created child theme , started tweaking index page hoping achieve this, far haven't had luck.

my end goal this:

i featured posts show on homepage in normal post stream (as if didn't choose featured). right when choose featured, takes post out of stream of posts , sits exclusively in top featured section.

i looked tweaking twentyfourteen_get_featured_posts() i'm not understanding why after gets featured post, seems flag it, or remove normal post flow.

could put me on right track making work?

thanks in advance

so 2014 theme wordpress tricky. has method filter out featured posts home page , it's hooked in.

the file in inc folder in twentyfourteen theme folder , named featured-content.php

the function pre_get_posts. might want try commenting out block of code function , commenting out below line in same file:

add_action( 'pre_get_posts', array( __class__, 'pre_get_posts' ) ); 

i'm not in position undo custom modifications on own wordpress site, @ least confirmed through test run there no other issues such dependencies in other files on function. give try , let me know how goes - if find issue may have overlooked, can undo comments.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -