This tutorial provides the steps to display last two posts below the comment form on single post pages in Genesis. There will be no output for the oldest post and the post published after the oldest post. Step 1 Create a file named single-post.php in the child theme directory having the following code: To view […]
WP_Query
Custom slider showing featured posts and featured events in Genesis
In Genesis Facebook group, a user asked: Genesis Responsive Slider: I currently have a “featured” category that populates the slider. We use Modern Tribe Events on the website. I would like to create an event category called “Featured Events” and have those also included in the slider. Any insight on how to marry both of […]
if conditional in WordPress for checking if a post has been published between two dates
In the members-only forum, a user asked: I need to know if is possible a conditional from date, for example is_date (1 april 2017 to 1 septiembre 2017){ } This tutorial provides the code to display a Promo Bar above header on single posts published between the specified start and end dates in Genesis. Approach […]
How to display posts grouped by year in WordPress
In a recent Genesis customization work I took up, the requirement was to display entries of a Custom Post Type grouped by years the posts were published in. The output needs to be the year the latest entry was published in, then an unordered list of titles linking to their permalinks for all entries published […]
How to show featured image of latest post for each unique posts published year in WordPress/Genesis
In a Genesis site that I am currently developing, there is an “Archive” page whose design looks like this: I could have simply hard-coded the images and the years and be done with the page in about 15 min. But I’ve decided to complicate things for myself and spent half a day making it dynamic […]
Porthole columns in Infinity Pro
In the members-only forum, a user asked: Images overlayed between between home page sections Infinity Pro I’m not even sure what to call it. Essentially I’m trying to copy the top of the home page here: https://www.fresyesrealty.com/ but use Infinity Pr. In particular, I’m just trying to have the three circular images overlap between Front […]
Replacing Genesis – Featured Posts widget output with custom code
In a customization task that I am working on currently, the client wants the following changed/added w.r.t Genesis – Featured Posts widget: 1 Post is to be shown from either of two specific categories. Instead of a static (widget) title, category name should appear. Different font-family should be applied to the title depending on which […]
Recent Comments