• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2665

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

Foodie Pro Featured Posts Widget – Manually Add Which Posts You Want Featured

The code in this solution is based on this question from a member of the StudioPress Community Forums:

I’m wondering if there’s a way to edit the ‘Foodie – Pro Featured Post’ widget so that I can manually add which posts we want featured… In other words, right now I have the option to choose by ‘Category’, but I would like to be able to manually add by post id or even title.

Solution

There’s no setting enabling you to select one or more single posts to include in the featured posts widget. To add a setting to do this would require a significant amount of code and understanding of all the code in the default widget which is a custom version of the Genesis featured posts widget.

The solution in this tutorial is very simple and requires the addition of a tiny amount of code to one of the Foodie Pro child themes files.

Note: You can also use this solution in any other Genesis child theme by using the Genesis Featured Posts Pro widget.

Here’s the exact location you need to edit in the file:

Register for full access

Foodie Pro Theme Genesis Featured Posts

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems