Forums

Display a Post Number instead of the Post Date (5 posts)

  1. Really Must I?
    Member
    Posted 11 months ago #

    Display a Post Number instead of the Post Date - any idea how to do this?

    I don't care if it's the D/B number, my client just doesn't want the date to show.

    Is there a way to turn the date off totally?

  2. ixwa
    Member
    Posted 11 months ago #

    You'll likely have to edit whichever PHP file is being used to display this post info (single.php? loop.php?) and either remove the variable call completely or just use another one of the post_vars like post->ID.

  3. esmi
    Theme Diva & Forum Moderator
    Posted 11 months ago #

    Display a Post Number instead of the Post Date

    Within the Loop: <?php echo $post_ID;?>

    Is there a way to turn the date off totally?

    Yes - start editing your theme's template files and removing references to <?php the_date();?> and/or <?php the_time();?>

  4. Triple P
    Member
    Posted 11 months ago #

  5. Really Must I?
    Member
    Posted 11 months ago #

    Thanks, Triple P >>

    I tried the code from your link, but it is frustratingly not clear exactly how to place this in the functions.php file (for the theme, correct?)

    I guess I will have to go to my clients theme (iTheme) page and see if they know how to do this.

    Do you know what the author means here? Where do I place this code? At the end of the theme's functions.php or in some other file?

    anywhere you want to display this post number, use the following line:

    <?php echo get_post_meta($post->ID,'incr_number',true); ?>

    Thanks again for the reference.

Reply

You must log in to post.

About this Topic