How to Turn off posted on date

Community Forums Forums Design Tips and Tricks How to Turn off posted on date

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  Hector 1 year, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #11494

    Hector
    Participant
    Post count: 11

    Hello,

     

    I just purchase the lifestyle theme and would like to know if I can turn off the post on date

    I would like to be able to turn it on in specific posts, but off on another.

    Thanks

    #11495

    Susan
    Moderator
    Post count: 9010

    From this post by @wpsmith (pay attention to the code – you will need to modify it to edit the pages/posts on your site)

    [php]
    <php
    // Modify Post Info
    add_filter( ‘genesis_post_info’, ‘my_post_info_filter’ );
    function my_post_info_filter( $post_info ) {
    global $post;
    if ( in_array( $post->ID, array( 1, 2, 3, 4123, 432, ) ) { //edit the numbers to whatever post IDs you’d like.
    $post_info = ‘[ post_date] by [ post_author_posts_link] at [ post_time] [ post_comments] [ post_edit]‘; //remove spaces after initial [
    }
    return $post_info;
    }
    [/php]


    Susan @ Graphically Designing I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #11500

    Hector
    Participant
    Post count: 11

    Thanks for the information

     

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

You must be logged in to reply to this topic.