Ask the community

This is a community support forum where you can ask
questions and interact with other PremiumPress Customers.

[DATE] shortcode function

  • Praveen
    Praveen
    Senior Member 216 points
    July 30, 2013 at 3:29 pm

    Hi,

    Where can i find the below code in this template, actually in need to modify the date script but not able to find this. Or from where [DATE] shortcode is calling the function?

    <?php the_date(); ?>

  • Praveen
    Praveen
    Senior Member 216 points
    July 31, 2013 at 7:04 am

    Any one know abt this?

  • Mark Fail
    Mark Fail
    Super Guru 12,821 points
    July 31, 2013 at 9:32 am

    the [DATE] code is called from the gallery loop function in the main class file. I wouldnt suggest editing this directly, what are you trying todo with it?

  • Praveen
    Praveen
    Senior Member 216 points
    July 31, 2013 at 9:51 am

    Trying to modify the display of date format

  • Mark Fail
    Mark Fail
    Super Guru 12,821 points
    July 31, 2013 at 9:53 am

    the date is taken from the post_date and doesnt use the the_date() function, you can adjust the format as normal in WP under the settings -> general tab.

  • Praveen
    Praveen
    Senior Member 216 points
    July 31, 2013 at 10:43 am

    I mean i need to show relative dates.

  • Praveen
    Praveen
    Senior Member 216 points
    July 31, 2013 at 12:17 pm

    which file exactly, you mean css.core.css?

  • Mark Fail
    Mark Fail
    Super Guru 12,821 points
    July 31, 2013 at 1:59 pm

    framework/class/class_white_label_themes.php

    i would advise creating a plugin instead of editing core files.

  • Praveen
    Praveen
    Senior Member 216 points
    July 31, 2013 at 3:03 pm

    Sure mark, will create in different plugin, since it will be good during updates so that i wont loose any settings.

    Thanks :)

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