Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #368504

    Hi,

    I wanted to display last date when i modified a post and itemprop=”dateModified”, so i modified loop-index file and wrote that:

    echo "<time class='date-container minor-meta updated' $markup>".get_the_time(get_option('date_format'))."</time>";
    				if (get_the_modified_time() != get_the_time()) {
    				echo ", ";
    				echo "<time class='date-container minor-meta updated' itemprop='dateModified' datetime=".get_the_modified_time('c')."> last modified ".get_the_modified_time(get_option('date_format'), $the_id)."</time>";
                   	}

    It works great but i don’t know if it’s optimal for page speed. I’m not developper, so I ask you some advice or a better solution to implement that

    Thanks

    #368689

    Hey serge esteves!

    You shouldn’t have any speed issues with that. Let us know if you have any other questions.

    Regards,
    Elliott

    #369091

    ok, thanks :)

    do you plan to add this feature on future update ?

    #369138

    Hi!

    I don’t think most people would care to have that information displayed so probably not. If you want you can add a feature request here, https://kriesi.at/support/enfold-feature-requests/.

    Best regards,
    Elliott

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.