• Resolved melisa.ciputra

    (@melisaciputra)


    Hi guys,

    I’d like to use Otters posts block with date and title only showing. However, I have 2 issues here that I guess can be solved using jquery but wondering if there’s easier way to do it.
    – How do I remove the “on” on the date meta data?
    – Is there an easy way to change the date format to follow the site’s date format?
    Exmple, on your post block it shows as 25 July 2019 while the rest of the site is set to July 25, 2019

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Hardeep Asrani

    (@hardeepasrani)

    Hey there,

    That was the idea for the date in the latest version, but we will provide a way to change the format in the next version, probably using some hook.

    For the first one, it’s not possible to remove on as we can really add such functionalities to the plugin, but these little things will never add and will just adding too many options so we let people deal with these using jQuery.

    Let me know if you need help with the code to remove it. ??

    Thread Starter melisa.ciputra

    (@melisaciputra)

    Hi, Thank you for your quick response.
    Do you have an idea when is your next version coming for the date change format option?

    I am going to do this for time being for my post meta. I will lose the <time> tag but I guess it’s not important if this date option going to be coming in the (hopefully near) future.

    var splitted = $(".posts-grid-post-meta time").html().split(/[ ,]+/);
    $(".posts-grid-post-meta").html(splitted[1] + " " + splitted[0] + ", " + splitted[2]);

    Thank you.

    Plugin Author Hardeep Asrani

    (@hardeepasrani)

    Do you have an idea when is your next version coming for the date change format option?

    We have a release this week, so probably in the release after this we can have that option. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Posts Meta Block Date’ is closed to new replies.