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

WP SITES

2662

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

Genesis Featured Posts Widget You Can Modify

This code enables you to customize the default Genesis featured posts widget from your child themes folder and modify the code safely so its not lost when Genesis updates.

genesis custom posts widget

The reason i have written this tutorial is because of 2 forum questions i read recently, both of which are pretty much the same question:

I am looking to re-position post meta area before post title with image aligned left.

Code Installation – Beginners Guide

  1. Copy the PHP code from the view raw link in the Gist labelled genesis-post-widget.php and paste it into a new file named genesis-post-widget.php using a code editor like Notepad++.
  2. Upload the file to the root directory of your child themes folder.
  3. Copy the code from the Gist labelled functions.php and paste it at the end of your child themes functions.php file.
  4. You’ll then find a new widget named Genesis Custom Posts under Appearance > Widgets.

Note: You can change the classes in the code or use CSS from any StudioPress child theme for the Genesis Featured Posts widget and change the classes to match what you have in the code of the Genesis Custom Posts widget.

Related Widgets & Plugins

  • Modify Genesis Featured Posts Widget
  • Featured Posts Pro Widget for Genesis
  • Genesis Featured Posts Widget – Entry Title Before Featured Image

Genesis Featured Posts

Reader Interactions

Comments

  1. Mark says

    September 21, 2014 at 6:23 pm

    Thanks for the code — will come in very handy. Any quick suggestions where to hardcode (for simplicity over updating all of plugin) a line to exclude a category, i.e. basically want to show all post, excluding previously shown, but nothing from Category X.

    Log in to Reply
    • Brad Dalton says

      September 21, 2014 at 7:12 pm

      Hello Mark

      You can modify the code to exclude a category the same way you would exclude a category using WP_Query but the changes will be hard coded into your custom genesis featured posts widget.

      Log in to Reply

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