Shortcode for Show Recently Updated badge

This topic contains 12 replies, has 3 voices, and was last updated by  Naveen Giri 4 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #522131

    memorex13
    Expired Member
    Post count: 540

    Hi,
    Could you tell me a shortcode Show Recently Updated badge on listings that have been edited recently.

    Thanks

    #522146

    memorex13
    Expired Member
    Post count: 540

    hi,

    I found the information here (https://wpgeodirectory.com/docs-v2/design/gd-badge/)

    Thanks

    #522174

    Alex Rollin
    Moderator
    Post count: 27815

    Excellent!

    #522190

    memorex13
    Expired Member
    Post count: 540

    Hi,
    Ok, I am using the following shortcode but no badge appears. Do I have to create a badge in custom fild?

    [gd_post_badge key=”post_modified” condition=”is_less_than’ search=”+30″ icon_class=”fas fa-certificate” badge=”Actualizado hace poco!” bg_color=”#ff0000″ txt_color=”#ffffff” alignment=”right”]

    I tried to create one but with the name post_modified it gives error since it tells me that there is already one created.

    Thanks

    #522257

    Alex Rollin
    Moderator
    Post count: 27815

    You should add that shortcode to your archive item template. Did you try that?
    https://wpgeodirectory.com/docs-v2/templates/archive-item/

    #522375

    memorex13
    Expired Member
    Post count: 540

    Hi,

    Yes, it is placed inside the item template file,

    Even change the format a bit.

    [gd_post_badge key=’post_modified’ condition=’is_less_than’ search=’+30′ ‘fas fa-certificate’ badge=’Actualizado recientemente!’ bg_color=”#ff0000″ txt_color=”#ffffff” css_class=’gd-ab-bottom-right”]

    Thanks

    #522436

    Alex Rollin
    Moderator
    Post count: 27815

    Please share WP Admin credentials so we can take a look.

    #522440

    memorex13
    Expired Member
    Post count: 540
    This reply has been marked as private.
    #522458

    Alex Rollin
    Moderator
    Post count: 27815

    Try changing all the quote symbols to either “” or ”. You have mixed them and that will break the badge.

    #522578

    memorex13
    Expired Member
    Post count: 540

    Hi @alex
    Is working.

    Where do you find post_modified to change the date. Right now it’s like this 2019-12-18 15:40:32 and I need to put it on 12-18-2019 15:40:32

    Thanks you!

    #522594

    Alex Rollin
    Moderator
    Post count: 27815

    I have asked the developers to look at that for future versions, to be able to select a date format. Right now it is reading the value straight out of the db. To change it now you would change the format in the DB or have to customize it.

    Other folks using that type of badge have just wanted to use the math function and say something like “Recently Updated” instead of posting the date.

    #522596

    memorex13
    Expired Member
    Post count: 540

    Hi
    I know it can be done with text, but I like it to be dated. That gives customers more security and seeing a date instead of a text.

    I will wait for the developers and see if they find a solution.
    Thank you.

    #522818

    Naveen Giri
    Moderator
    Post count: 1559

    Hi @memorex13,

    Currently there is no hooks for changing the date format on badge code wise.
    we have added the request here.
    https://github.com/AyeCode/geodirectory/issues/1017

    Update you when it is up in future version.

    Thanks

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket