• j.dominionated

    (@quickbeforeitmelts)


    I’m not very experienced with using code, but I do have the plugin installed and it’s working, so that’s half the battle.

    I would like to plugin to show the date after 1 week, but I do not know how to configure this using $showDateAfter.
    <?php wp_days_ago_v3 ($showDateAfter 604800); ?>
    Where/how do I specify the length of time?

    Thanks for your help.

Viewing 1 replies (of 1 total)
  • Plugin Author Vegard Skjefstad

    (@vskjefst)

    Give this a go:

    <?php wp_days_ago_v3 (604800, 604800); ?>

    PHP allows you to skip method parameters, but only from the right. This means that if you want to use the $showDateAfter parameter, you also have to use the $stopUsingAjaxAfter parameter. I’ve set this value to the same as the $showDateAfter.

    A better solution would be if the plugin allowed you to configure these value independently. Perhaps something for the next version, if that ever happens.

Viewing 1 replies (of 1 total)
  • The topic ‘How to use $showDateAfter’ is closed to new replies.