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

Appfinite

Premium WordPress Themes for The Genesis Framework

  • Themes
  • Blog
  • Tutorials and Resources
  • Forums
  • Contact Us

Customization

  • An Introduction to Filters
  • An Introduction to Hooks
  • Filter Reference
  • Hook Reference
  • Shortcode Reference
  • Theme Customization Basic Skills
  • Visual Markup Guide
Shortcode Reference
  • Footer Shortcode Reference
  • Post Shortcode Reference
  • Shortcodes Overview

General

  • An Introduction to Genesis Child Themes
  • Getting Started with WordPress and the Genesis Framework
  • How to Install and Activate the Genesis Framework or a Genesis Child Theme
  • One-Click Theme Setup

Genesis Code Snippets

Accessibility
  • Enable Accessibility Features
Admin Management
  • Force the Genesis Layout Settings
  • Remove the Genesis In-Post SEO Settings
  • Remove the Genesis Layout Settings
  • Remove the Genesis Menu Link
  • Remove the Genesis SEO Settings Menu Link
  • Unregister the Genesis Layout Settings
  • Unregister the Genesis Widgets
Author Box
  • Enable the Author Box on Archive Pages
  • Enable the Author Box on Single Posts
  • Modify the Author Box Title
  • Modify the Gravatar Size
  • Remove the Author Box on Single Posts
Block Editor
  • Disable Responsive Typography in Genesis Blocks
  • Enable Block-Based Widget Editor
Breadcrumbs
  • Modify the Breadcrumbs Display
  • Modify the Breadcrumbs Home Link
  • Reposition the Breadcrumbs
Comments
  • Add A Comment Policy Box
  • Modify the Author Says Text
  • Modify the Comments Headline Text
  • Modify the Comments Link Text
  • Modify the Gravatar Size
  • Modify the Speak Your Mind Text
  • Modify the Submit Button Text
  • Modify the Trackbacks Headline Text
  • Remove the Allowed Tags Text
Custom Feeds
  • Remove Custom RSS Feed Redirect
Entry Content (HTML5)
  • Add Post Navigation
  • Remove Entry Content
  • Remove Post Image
  • Remove Post Navigation
  • Remove Post Permalink
Entry Footer (HTML5)
  • Customize the Entry Footer
  • Remove Entry Footer Markup
  • Remove Entry Meta
Entry Header (HTML5)
  • Customize the Entry Header
  • Remove Entry Header Markup
  • Remove Entry Meta
  • Remove Entry Title
  • Remove Post Format Image
Footer
  • Customize the Credits Text
  • Customize the Return to Top of Page Text
  • Customize the Site Footer
  • Reposition the Site Footer
Google AdSense
  • Remove AdSense ID Setting in Customizer
  • Remove AdSense Metabox from Theme Settings Screen
  • Remove AdSense Metabox on Posts and Pages
Head Section
  • Add Custom Viewport Meta Tag
  • Add Viewport Meta Tag
Header
  • Modify the Header URL
  • Remove the Header Widget Area
  • Remove the Site Description
  • Remove the Site Title
HTML5
  • Enable HTML5 Markup
Images
  • Add Featured Images
  • Display a Custom Gravatar
Miscellaneous
  • Add an After Entry Widget Area
  • Add Custom Body Class
  • Show Content Above Posts on Blog Page
Navigation Menus
  • Add Navigation Extras
  • Reposition the Primary Navigation Menu
  • Reposition the Secondary Navigation Menu
  • Unregister the Primary Navigation Menu
  • Unregister the Primary/Secondary Navigation Menus
  • Unregister the Secondary Navigation Menu
Post Excerpts
  • Modify the Content Limit Read More Link
  • Modify the Content Read More Link
  • Modify the Length of Post Excerpts
Post Formats
  • Add Post Format Images
  • Add Post Formats
Post Info (XHTML)
  • Customize the Post Info Function
  • Remove the Post Info Function
Post Meta (XHTML)
  • Customize the Post Meta Function
  • Remove the Post Meta Function
Post Navigation
  • Customize the Next/Newer Page Link
  • Customize the Previous/Older Page Link
Scripts
  • Disable Superfish Script
  • Enable Superfish Script
Search Form
  • Customize the Search Form Input Box
  • Customize the Search Form Input Button
  • Customize the Search Form Label
Sidebars
  • Unregister Primary Sidebar
  • Unregister Secondary Sidebar
Structural Wraps
  • Add Structural Wraps

Theme Usage

Genesis Features
  • Add a Featured Image to Posts or Pages
  • Add an Archive Page Title and Description
  • Add an Author Box on Single Posts
  • Add Header, Footer, and Body Scripts
  • Add Your Google AdSense Publisher ID
  • Create a Custom Blog Page
  • Create a Standard Blog Page
  • Edit the Entry Meta and Footer Text with Genesis
  • Genesis Layout Settings
  • Genesis Post or Page Settings
  • Genesis SEO Settings
  • Genesis Theme Settings
  • Genesis Widgets
  • How to Update the Genesis Framework
  • Post or Page Theme SEO Settings
  • Home
  • Docs
  • Genesis Code Snippets
  • Post Info (XHTML)
  • Customize the Post Info Function

Customize the Post Info Function

The following snippet should only be used for sites using XHTML themes and Genesis versions earlier than 3.0.0. XHTML is no longer used in Genesis 3.0.0+.

Also, unless otherwise indicated, the code snippet should be placed into your theme’s functions.php file.

These code snippets can be utilized to modify the Post Info for XHTML themes. For HTML5 (Pro) themes, please use the Entry Header customization code snippets.

Here’s the code to personalize the post info on your website:

<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
 
//* Customize the post info function
add_filter( 'genesis_post_info', 'sp_post_info_filter' );
function sp_post_info_filter($post_info) {
if ( !is_page() ) {
	$post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]';
	return $post_info;
}}

To view a list of shortcodes and their corresponding attributes, please refer to the Shortcode Reference page.

Remove the Post Info Function
  • Buy Genesis!
  • Shopping Cart
  • Themes
  • My Account
  • Support Forums
  • Tutorials and Resources
  • Privacy Policy
  • Contact Us
  • Follow Us on Twitter

Copyright © 2023 · Appfinite · Built With The Genesis Framework