Remove Byline / Post Meta on Pages *Only*

Community Forums Forums Design Tips and Tricks Remove Byline / Post Meta on Pages *Only*

This topic is: not resolved

Tagged: ,

This topic contains 5 replies, has 2 voices, and was last updated by  nickthegeek 1 year, 3 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #7142

    wendymv
    Participant

    I’ve been researching for the past hour on how to remove the byline / post meta from pages only.  Everything I’m finding is related to “posts” – I’m using the Agency theme.  I tried modifying the [post_date] [post_time] in the hooks, but nada…

    I have a feeling it has something to do with this code here in the Theme Functions file….?

    /** Customize the post info function */
    add_filter( ‘genesis_post_info’, ‘post_info_filter’ );
    function post_info_filter($post_info) {
    if (!is_page()) {
    $post_info = ‘[post_date] by [post_author_posts_link] · [post_comments] [post_edit]‘;
    return $post_info;
    }}

    Thank you :-)

    #7144

    nickthegeek
    Keymaster
    Post count: 751

    IT shouldn’t output on pages by default. Please post a link to your site

    #7152

    wendymv
    Participant
    #7161

    nickthegeek
    Keymaster
    Post count: 751

    The code output on your page is not part of the post info. Are you adding the date via a hook such as Genesis Simple Hooks?

    #7205

    wendymv
    Participant

    Ahhh…. yes, I was using SH….  I figured it out.   :-)  I had [post_date] [post_time] in there -  I had mistaken that I was modifying the post byline, didn’t realize I was adding that *to* the pages…

     

    :-)

     

    #7212

    nickthegeek
    Keymaster
    Post count: 751

    cheers

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Remove Byline / Post Meta on Pages *Only*’ is closed to new replies.