How to edit or remove post meta

Post meta is a term for the information about a post – date it was published, author, categories, tags, comments, etc. Post meta is typically displayed in the header and footer of the post. Below we'll go over how to edit both post meta areas in your 17th Avenue theme. If you'd like to remove portions of the post meta, skip to the end of this tutorial.

Before making any edits to your Functions.php file, please make sure that you have access to the File Manager in your cPanel or FTP. The Functions.php file is incredibly sensitive and if a mistake is made, it can cause the "white screen of death" on your site. Having easy access to your File Manager means you can easily upload a fresh copy of the Functions.php file if the need arises.

Post Meta Shortcodes

A full list of possible shortcodes that you can use in the post meta is available HERE.

Header Meta

Keep in mind that what is included in the header post meta varies from theme to theme. Yours may look different.

1. To edit the header meta, go to Appearance > Editor > Theme Functions (Functions.php).

2. Locate this section in the code:

//* Customize the entry meta in the entry header
add_filter( 'genesis_post_info', 'theme_post_info_filter' );
function theme_post_info_filter( $post_info ) {

    $post_info = '[post_categories before=""] · [post_date]';

    return $post_info;

}

3. The header meta can be edited on this line ONLY BETWEEN the two single quotes:

$post_info = '[post_categories before=""] · [post_date]';

Footer Meta

Keep in mind that what is included in the footer post meta varies from theme to theme. Yours may look different.

1. To edit the footer meta, go to Appearance > Editor > Theme Functions (Functions.php).

2. Locate this section in the code:

//* Customize the entry meta in the entry footer
add_filter( 'genesis_post_meta', 'theme_post_meta_filter' );
function theme_post_meta_filter( $post_meta ) {

    $post_meta = '[post_author_posts_link before="Posted By: "] · [post_categories before="In: "]';

    return $post_meta;

}

3. The footer meta can be edited on this line ONLY BETWEEN the two single quotes:

$post_meta = '[post_author_posts_link before="Posted By: "] · [post_categories before="In: "]';

For example, if you'd like to remove the post author and add post tags, you could change the above line to:

$post_meta = '[post_categories before="In: "] · [post_tags before=""]';

Removing the post meta

If you want to remove the header or footer post meta ENTIRELY, go to Appearance > Customize > Additional CSS. Paste the appropriate code in the box and then click Publish.

Remove header meta:

.entry-header .entry-meta {
    display: none; }

Remove footer meta:

.entry-footer .entry-meta {
    display: none; }

Removing specific parts of the post meta

If you want to remove a specific part of the post meta, you can either edit the Functions.php as described at the top of this page, or for an easier option, you can just add a code snippet to your theme.

Go to Appearance > Customize > Additional CSS. Paste the appropriate code in the box and then click Publish.

Remove post date:

.entry-time {
    display: none; }

Remove post categories:

.entry-categories {
    display: none; }

Remove post tags:

.entry-tags {     
    display: none; }

Remove post author:

.entry-author {
    display: none; }