WPIntell

Source evidence

Showing specific featured posts

Nelio Featured Posts 路 support 路 2015-08-17T22:31:00+00:00

questionsentiment
lowseverity
0.63relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 27 rows with source links

14.8% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

23 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
SonalM resolved
Hi, is there any way to generate only specific posts, e.g. if I only wanted to display the 1st or 3rd featured post (instead of all of them), how would I do that? On one page I need all the featured posts but on another I only need the content for specific posts, I am using the_widget() to call the widget. https://wordpress.org/plugins/nelio-featured-posts/ Hi SonalM! Thanks for using our plugin 馃檪 I鈥檓 sorry I couldn鈥檛 reply you before. I鈥檝e updated the plugin and added a new filter ( neliofp_get_featured_posts ). You can use this filter to select which posts are shown under which pages as follows (add the code in your theme鈥檚 functions.php file): add_filter( 'neliofp_get_featured_posts', 'prefix_filter_posts' ); function prefix_filter_posts( $feat_posts ) { if ( is_page() || is_single() ) { switch ( get_the_ID() ) { case 2: // The landing page, whose ID is 2 $feat_posts = array( $feat_posts[0], $feat_posts[3] ); break; case 27: // A certain post (ID 27) $feat_posts = array( $feat_posts[2] ); break; // Add as many cases as required. } } return $feat_posts; } I hope this helps you! Please, don鈥檛 forget to add your review on our plugin .

Comments

1 shown
David Aguilera 2015-10-02T06:49:00+00:00

Hi SonalM! Thanks for using our plugin 馃檪 I鈥檓 sorry I couldn鈥檛 reply you before. I鈥檝e updated the plugin and added a new filter ( neliofp_get_featured_posts ). You can use this filter to select which posts are shown under which pages as follows (add the code in your theme鈥檚 functions.php file): add_filter( 'neliofp_get_featured_posts', 'prefix_filter_posts' ); function prefix_filter_posts( $feat_posts ) { if ( is_page() || is_single() ) { switch ( get_the_ID() ) { case 2: // The landing page, whose ID is 2 $feat_posts = array( $feat_posts[0], $feat_posts[3] ); break; case 27: // A certain post (ID 27) $feat_posts = array( $feat_posts[2] ); break; // Add as many cases as required. } } return $feat_posts; } I hope this helps you! Please, don鈥檛 forget to add your review on our plugin .