Modify Post Info On Single Posts & Remove Or Customize On All Other Pages

Its pretty easy to add some PHP code in your child themes functions file to remove all the post info from all pages and posts on your site.

You can also add code to modify the post info you want to display on single posts or archive pages.

But what if you only want to modify your post info on single posts and remove it from all other pages on your site?

What if you only want to modify the entry meta in the entry header on single posts and also modify it differently on all other pages on your site?

In this post, i’ll give you 2 PHP code snippets you can choose from to remove all the post info from your site and only display modified post info on single posts.

Solution 1

The above code enables you to display a different post info for non single posts or completely remove the post info for non single posts and only modify the post info on single posts.

Solution 2

The above code enables you to customize the post info on single posts and completely remove it from all other pages on your site.

Both solutions only display the modified date using a shortcode i created for this purpose however you can use any existing shortcodes included in Genesis for the entry meta including author, comments, date, category & tagged with shortcodes.

You can also use any entry meta shortcodes for the entry header or entry footer including the tagged with and filed under shortcodes for category & tags.

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.