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

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full Access
  • Log in

How To Add A New Featured Post Widget To Genesis For Custom Post Types

This code creates a featured post widget which only displays your custom post types ( CPT’s ) featured image and title, content or excerpt in Genesis child themes like this example:

cpt widget

This solution enables web designers and theme Developers the option to create a custom widget for clients rather than use a 3rd party plugin.

Included is the CSS to display each featured CPT post entry inline as seen in the above screenshot.

Rather than display the title for each post, the widget also enables you to add a custom excerpt which you can display as the title instead of the default entry title as seen in the above screenshot.

If you click on the image, it links back to each single CPT post.

You can also change the widget to display any number of featured images inline and display them by using any of the WP_Query parameters.

Code & Simple Installation Instructions

To create the new widget, simply copy and paste each snippet as instructed.

Register for full access

After installing the above code, you can then go to Appearance > Widgets and drag your new custom widget into your After Header widget area and configure the widget settings.

Genesis Featured Posts

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.