Support » Plugin: WPAdverts - Classifieds Plugin » Single Map Location without down arrow

  • Hi! I need insert the single map location (pro addons) in single without text “show on map” or the down arrow. I need the map location always appears. How can i do that? Can I Call a custom field or something? I use override templates. Thank You!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter jcandsv

    (@jcandsv)

    The same for the “contact form” below the ad, please… Thank you!

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    1. in the wp-admin / Classifieds / Options / Maps and Locations panel, in section “Ad details page” there is a “Map Visibility” checkbox, if you check it then the map on Ad details page will be visible by default.

    Please note that this might be costly. I mean that the Google Maps API is paid, in the case of maps they will charge you for every map load. If you have the map visible by default then they will basically charge you for every single Ad details page load.

    2. to make the contact form always visible go to wp-admin / Appearance / Customize / Additional CSS panel and add there the code below

    
    .adverts-contact-box {
        display: block !important;
    }
    .adverts-show-contact-form {
        display: none !important;
    }
    
    Thread Starter jcandsv

    (@jcandsv)

    Thank you Greg. A last question, how can i change the pin image of the map? It’s possible?

    Thread Starter jcandsv

    (@jcandsv)

    Other Question: How can i get the number ads count. Not General, only the number of posts published by the current user. Thank you Greg for your help, you’re great. We bought the premium pack.

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    1. changing the pin icon on the map is not really possible right now i am afraid (at least not without changing the original source code).

    2. to count the number of Adverts a user has posted you can use count_user_posts function https://developer.wordpress.org/reference/functions/count_user_posts/

    For example

    
    $user_id = 1; // set the user id here
    All Posts: <?php echo count_user_posts( $user_id, "advert", false ) ?><br/>
    Public Posts: <?php echo count_user_posts( $user_id, "advert", true ) ?>
    
    Thread Starter jcandsv

    (@jcandsv)

    Hi, Thank you for your support.

    Other Question: How can I limit only the featured Ads. I limit the standard ads by role user in my website.

    Example:
    – If User has Level 1: can post 8 ads
    – If User has Level 2: can post 15 ads
    – If User has Level 3: can post 20 ads

    I need that User Level 1 can post 5 standard ads and 3 featured ads. Similar for level 2 or 3.

    Thank you!!

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    by default, we do not have such a feature or a free snippet i am afraid. It is possible with the Memberships extension https://wpadverts.com/extensions/memberships/, unfortunately, available in Pro+ package only.

    If you are familiar with PHP programming, we also have free snippets that have similar functionality (although quite far from what you are looking to do):
    https://github.com/simpliko/wpadverts-snippets/blob/master/limit-listings/limit-listings.php allows limiting listing types usage, but the limit is set the same for each user, so it would need to be customized to set different limit for each user type.
    https://github.com/simpliko/wpadverts-snippets/blob/master/limit-user-active-listings/limit-user-active-listings.php allows limiting the number of active/conurrent listings user can have.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.