Simply paste this code at the end of your child themes functions.php file. The code will generate and print page info after your page titles.
This code includes the new loop hooks for Genesis 2.0 HTML 5 enabled child themes.
You can easily modify this code to include or exclude the date, author, comment and other links.
Example Of Post Info On Page
Post Info With Schema On Pages Only
This code will display post info with micro data on pages only and removes post info from single posts. The code only works using Genesis 2.0 on child themes which support HTML 5 and the new loop hooks.
To enable post info on single posts, simply remove the remove action line of code at the top of snippet. Here’s the code which also displays the default post info on single posts and micro data supported post info on pages.
Default Single Post Info & Micro Data Post Info On Pages
You can easily modify this code by using another conditional tag and hook position to display in a different location on posts, pages and archives.
Display Post Info On Specific Pages
You can use either the page slug, page i.d or page name in an array to add post into to specific pages. Using the page name is not recommended as it doesn’t always work.
Further Customization Of Post Info
Here’s different ways you can remove, add and customize post info links in Genesis child themes.
Leave a Reply
You must be logged in to post a comment.