Filter Ads on FRONT PAGE (HELP!)
Hi everyone!
I'm having trouble with filtering ads on the Front Page and Archive Pages. I just want to add a simple filter feature with a select form (but this is not important for my question)
This is what I did:
1.) opened file content-ad_listing.php of child theme
2.) added if-statement (for testing purposes) on the top of the file (above <?php if ( is_sticky() ) { ?>) and closed it after the last line
if-statement looks like: if ( get_post_meta( $post->ID, 'cp_price_negotiable', true ) ) { ... ads ... }
THE THING IS ... It works, so I only get ads displayed that have a negotiable price!
BUT Instead of displaying 10 (filtered) negotiable posts/ads per page as default, I only see for example: if Page 1 contains 3 ads with negotiable price and there are 10 posts -> only 3 ads are displayed on the Page 1! But I want to load all negotiable ads on the pages till the posts_per_page reaches the limit (of 10)!
Please, I really need help with this!
Even programers on Fiverr are having troubles with this!