• *****
  • 384 posts
Repeating of Premium listings, very bad...?
« on: February 24, 2017, 02:44:50 AM »
Good day developer.
Once again, these theme was done very nicely with a love, thanks :-* :-*,  but some function to be amended (again, it is only my personal opinion/request)

How to remove repeating of premium listings ???

Let say I had posted an ad and made this ad as premium, then I have two same ads in Premium and Latest view listings, which is eating the space on PC and completely no carry any informative. Why do you need 2pcs of same listings on main page ??? ( if I post 3 ads and made them as Premium then I have 6 ads from which are 3pcs  are the same)

The same issue is related to the search view.
On the top Premium ads , below in the list view same last premium ads.... :-\ :-\

This is very irritating to see repeated ads on main page or in search view.

I would like to ask how to avoid to draw premium ads in Latest listing view + in search view ?


MB Themes

Re: Repeating of Premium listings, very bad...?
« Reply #1 on: February 24, 2017, 09:07:09 AM »
Disable premium blocks.
Set to show all listings in latest section.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots


Ajit Sahane

  • ****
  • 117 posts
  • https://bestclassifiedsusa.com
Re: Repeating of Premium listings, very bad...?
« Reply #2 on: March 16, 2023, 01:15:40 PM »
Add this code into theme functions.php


function cust_exclude_premiums_from_list() {
    Search::newInstance()->addConditions('b_premium = 0');

osc_add_hook('search_conditions', 'cust_exclude_premiums_from_list');

search page - premium & free section - No ads repeated.