• 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
  • Customization
  • Shortcode Reference
  • Post Shortcode Reference

Post Shortcode Reference

Table of Contents
  • Post Date
  • Post modified date
  • Post Time
  • Post Modified Time
  • Post Author
  • Post Author Link
  • Post Author Posts Link
  • Post Comments
  • Post Tags
  • Post Categories
  • Post Edit
  • Post Terms

Here is a list of shortcodes that can be inserted into the Entry Header and Entry Footer sections, along with an example format and the corresponding output.

For instructions on how to utilize shortcodes, please refer to the Shortcodes Overview.

Post Date #

[post_date]

This function produces the date of post publication. Here is a list of attributes for this shortcode:

  • format – The format for the date. Defaults to the date format configured in your WordPress settings.
  • before – Text/markup to place before the post date.
  • after – Text/markup to place after the post date.
  • label – Text to place before the post date.

Example output and corresponding shortcode:

Dated: November 12, 2012

[post_date format="F j, Y" label="Dated: "]

Post modified date #

[post_modified_date]

This function produces the date on which the post was last modified. Here is a list of attributes for this shortcode:

  • format – The format for the date. Defaults to the date format configured in your WordPress settings.
  • before – Text/markup to place before the post modified date.
  • after – Text/markup to place after the post modified date.
  • label – Text to place before the post modified date.

Example output and corresponding shortcode:

Last Modified: March 13, 2017

[post_modified_date format="F j, Y" label="Last Modified: "]

Post Time #

[post_time]

This function produces the time of post publication. Here is a list of attributes for this shortcode:

  • format – The format for the time. Defaults to the time format configured in your WordPress settings.
  • before – Text/markup to place before the post time.
  • after – Text/markup to place after the post time.
  • label – Text to place before the post time.

See the WordPress Codex for more information on formatting date and time.

Example output and corresponding shortcode:

12:01 pm

[post_time format="g:i a"]

Post Modified Time #

[post_modified_time]

This function produces the time at which the post was last modified. Here is a list of attributes for this shortcode:

  • format – The format for the time. Defaults to the time format configured in your WordPress settings.
  • before – Text/markup to place before the post modified time.
  • after – Text/markup to place after the post modified time.
  • label – Text to place before the post modified time.

Example output and corresponding shortcode:

6:15 pm

[post_modified_time format="g:i a"]

Post Author #

[post_author]

This function produces the author of the post (display name). Here is a list of attributes for this shortcode:

  • before – Text/markup to place before the post author name.
  • after – Text/markup to place after the post author name.

Example output and corresponding shortcode:

Sample User

[post_author before="<em>" after="</em>"]

Post Author Link #

[post_author_link]

This function produces the author of the post with a link to the author URL. Here is a list of attributes for this shortcode:

  • before – Text/markup to place before the post author link.
  • after – Text/markup to place after the post author link.

Example output and corresponding shortcode:

Sample User

[post_author_link before="<b>" after="</b>"]

Post Author Posts Link #

[post_author_posts_link]

This function produces the author of the post with a link to author archive. Here is a list of attributes for this shortcode:

  • before – Text/markup to place before the post author link.
  • after – Text/markup to place after the post author link.

Example output and corresponding shortcode:

Sample User

[post_author_posts_link before="<b>" after="</b>"]

Post Comments #

[post_comments]

This function produces the comment link. Here is a list of attributes for this shortcode:

  • zero – Text to display if zero comments on the post.
  • one – Text to display if one comment on the post.
  • more – Text to display if more than one comment on the post.
  • hide_if_off – Enable the comment link even if comments are off.
  • before – Text/markup to place before the post comment link.
  • after – Text/markup to place after the post comment link.

Example output and corresponding shortcode:

No Comments: No Comments
1 Comment: 1 Comment
Multiple Comments: 7 Comments

[post_comments zero="No Comments" one="1 Comment" more="% Comments" hide_if_off="disabled"]

Post Tags #

[post_tags]

This function produces the tag link list. Here is a list of attributes for this shortcode:

  • sep – Separator between post tags.
  • before – Text/markup to place before the tag list. Default “Tagged With: “
  • after – Text/markup to place after the tag list.

Example output and corresponding shortcode:

Tags: Tag Name

[post_tags sep=", " before="Tags: "]

Post Categories #

[post_categories]

This function produces the category link list. Here is a list of attributes for this shortcode:

  • sep – Separator between post categories.
  • before – Text/markup to place before the post category list. Default “Filed Under: “
  • after – Text/markup to place after the post category list.

Example output and corresponding shortcode:

Posted Under: Category #1

[post_categories sep=", " before="Posted Under: "]

Post Edit #

[post_edit]

This function produces the edit post link for logged in users. Here is a list of attributes for this shortcode:

  • link – Text for edit link. Default “(Edit)”
  • before – Text/markup to place before the edit post link. Default “Filed Under: “
  • after – Text/markup to place after the edit post link.

Example output and corresponding shortcode (This link displays only for logged-in users with a role that permits editing):

(Edit)

[post_edit  before="<b>" after="</b>"]

Post Terms #


This function produces a list of terms associated with the post from the specified taxonomy. Here is a list of attributes for this shortcode:

  • sep – Separator between the terms.
  • before – Text/markup to place before the post terms list. Default “Filed Under: “
  • after – Text/markup to place after the terms list.
  • taxonomy – Which taxonomy to use. The default taxonomy is “category”. See the WordPress codex for more information on taxonomies.

Example output and corresponding shortcode:

Category terms: term1, term2, term3

[post_terms sep=", " before="Category terms: "]
Footer Shortcode ReferenceShortcodes Overview
Table of Contents
  • Post Date
  • Post modified date
  • Post Time
  • Post Modified Time
  • Post Author
  • Post Author Link
  • Post Author Posts Link
  • Post Comments
  • Post Tags
  • Post Categories
  • Post Edit
  • Post Terms
  • 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