Skip to content
Public Ticket #13572

Single Post Modified Date Option

Conversation thread

Peter Johannesen replied

Customer Reply

thx you it worked! :)

PenciDesign replied

Staff Reply

Hi,

Thank you for purchased our theme and loving it.

Yeah, to do that, you need to edit the file inside this theme, please try replace the code like on this image to this code:

$post_id = get_the_ID();
if( get_theme_mod( 'penci_show_modified_date' ) || in_array( $post_id, array('3234') ) ){
    $get_the_date = $get_the_datem;
    $get_the_time = $get_the_timem;
}

Note:

The value 3234  on the above code is the ID of post you want to display modified date.

You can check this guide to know how to find ID of a post.

Best Regards,

PenciDesign

Peter Johannesen started the conversation

Conversation Start

Hello Envato,

First of all thank you for an amazing theme!

My question is would it be possible to have a single post have the "modified date" enabled whereas the rest of the website will run by the usual "created date". 

For example I want to have our bonus code webpage update its date every time a new bonus code as been added, but the rest of the website should not differ. I was thinking that if this possibility is not currently possible if it could be added manually somehow.

thank you in advance!

Want to join this conversation or access attachments? Sign in first.