• pageinsights

    (@pageinsights)


    hello,

    i would like to know how to show time of publishing ads (ads list) instead date? and location icons at ads lists when mobile version is active.

    How to show only categories with ads within (not empty categories) on categories page, not widget side bar.

    thank you for answer

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    to show time instead of the date on the [adverts_list] you would need to open the wpadverts/templates/list-item.php template file and replace line

    
    <?php echo date_i18n( get_option( 'date_format' ), get_post_time( 'U', false, get_the_ID() ) ) ?>
    

    with

    
    <?php echo date_i18n( get_option( 'time_format' ), get_post_time( 'U', false, get_the_ID() ) ) ?>
    

    If you decide to do that consider creating a child template file for list-item.php so your changes will not be overwritten on WPAdverts update https://wpadverts.com/doc/child-themes-and-templates/

    The [adverts_categories] shortcode does not have an option to hide the empty categories as it’s meant to show all of them.

    Thread Starter pageinsights

    (@pageinsights)

    How to show location icon at ads lists when mobile version is active – mobile phone or tablet? At the momement desktop version is showing published date, mobile only name of ad and location without “pin” icon? I would like to have same desktop as mobile.

    Thread Starter pageinsights

    (@pageinsights)

    Is it ok if you go on wordpress setting and change Date format to G:i ? Instead date wordpress start showing time. Expecting any error if i dont need anywhere date?

    Plugin Author Greg Winiarski

    (@gwin)

    If you want to show a custom formatted date in the code replace get_option( 'time_format' ) with for example 'G:i'.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Show Time of publishing ads (ads list) and pin location on mobile version’ is closed to new replies.