• Resolved gary_sweetman

    (@gary_sweetman)


    Hi Greg,

    I went ahead and installed wpadverts and I’m pretty happy with it and it looks and works pretty well, however I added the latest ads widget and it shows the latest posts instead, how can I get this to display the latest ads?

    I also had a problem with keyword search but I found an older question on here which seemed to have solved that.

    My other question is that I have added a custom sidebar to show the categories on the classifieds, post an add, and manage ads pages, is there a way that I can get it to display on all of the advert posts too other than setting them one by one (or needing it to be everywhere)?

    Also, I have found on here how to make location and image required, I attempted to do the same for price however it just shows the asterisk but lets it post with the price field blank, how could i do this properly please?

    I would seriously appreciate any help you can offer on these points.

    Although live, my website is still in testing but can be found here: https://maxzi.co.uk

    Thank you
    Gary

    https://www.ads-software.com/plugins/wpadverts/

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

    (@gwin)

    Hi, i am not sure, if the plugin is showing posts different then Adverts in the widget then there might be some conflicting plugin, you can try to disable the plugins one by one and see if this resolves this problem.

    I do not understand exactly what you would like to do regarding second question?

    The price field is filtered as a float number, this means that its value is never empty, if you do not provide any value at all, then value for this field will be “0”.

    Thread Starter gary_sweetman

    (@gary_sweetman)

    Hi,

    1. I tried deactivating all plugins however the problem of it showing latest posts still remained, so I tried the twenty fifteen theme and yes the widget worked, however I have put far too much work in to roll back to start again now so I really need this widget working with my theme but I wouldn’t know where the conflict could be as it doesn’t conflict the other way around (latest posts does not show the latest adverts), so I’m hoping there is a fix to stop latest adverts showing latest posts?

    Hopefully this will provide some clarification on the other two:

    2. I have used a custom sidebar to display the categories on the classifieds, post an add, and manage ads page sidebars, however this does not show on the single ad pages, is there a way to do this?

    3. Entering nothing in the price field does not show a price on the ad (and it shows “none” under the price in all classifieds in admin), therefore I would like to either make it required to have a number greater than zero, or if nothing or “0” is entered into the price field when submitting an ad for the price on the actual ad to display “FREE” (preferred)

    I’m really hoping that I can get these issues sorted (if/when I do I will be buying the PayPal addon)

    Thread Starter gary_sweetman

    (@gary_sweetman)

    An update,

    I have sorted the first one, I found adding this to the functions.php file worked (which I edited from an earlier fix for the search function):

    //Remove latest posts from ad widget
    add_filter('adverts_widget_list_query', 'remove_wp_latest_posts', 1);
    function remove_wp_latest_posts($query) {
      remove_all_filters("pre_get_posts");
      return $query;
    }

    I have also added a couple of custom fields so that members can say if the item is free or to contact for a price so I no longer need number 3 from my questions (although it would still be preferred my workaround is workable).

    Number 2 (the custom sidebar to show on the single listing page), I would still like to have but can live with it just on the main classifieds page if needs be (my Q&A add on is the same).

    So I will mark this as resolved

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Widget showing posts and a couple of other questions’ is closed to new replies.