Results 1 to 1 of 1

Thread: Filter Ads by Country on Front Page

  1. #1
    Thread Starter
    Member arisma's Avatar
    Join Date
    Mar 2017
    Posts
    77
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Filter Ads by Country on Front Page

    Hi everyone!

    I guess this is a question for the PHP-"Pros" out there!

    I'm currently trying to ad a filter by country feature to the ad loop on the ClassiPress Front Page. It's a simple select/option form with a submit button.

    I've managed to only show ads from a (by the user) selected country on the front page by adding some if statements to "content-ad_listing.php".

    THE PROBLEM: Even though my ClassiPress/WordPress should show 10 ads on my front page, I only get to see the ones I filtered.

    Example: I got 10 ads on my front page. 8 are from "Germany" - 2 are from "Switzerland". I set the filter to "Switzerland". Page is refreshed and now ... instead of only seeing the "old" 2 ads from "Switzerland" and 8 "new" ads from "Switzerland", I only see the "old" 2 ads from "Switzerland" on my front page. Why is that happening?

    What file/function counts the ads on the Front Page loop? Why doesn't classipress load all 10 ads on one page?

    Please HELP!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Filter Ads by Country
    By arisma in forum Help Using ClassiPress
    Replies: 1
    Last Post: December 3rd, 2017, 05:28 PM
  2. Filter Ads on Front Page with JQuery
    By arisma in forum Clasifichados
    Replies: 0
    Last Post: June 11th, 2017, 01:49 PM
  3. Country flag in front of country field
    By sribathi in forum ClassiPress General Discussion
    Replies: 4
    Last Post: January 11th, 2015, 01:37 PM
  4. How to remove filter form from front page
    By chlpp in forum JobRoller General Discussion
    Replies: 3
    Last Post: April 3rd, 2011, 06:45 PM