Related Ads Problem
-
Hi,
I want to add related ads in ad detail page. And I try this code:
https://github.com/simpliko/wpadverts-snippets/blob/master/related-ads/related-ads.phpBut this related ads still showing even when there is no related ads exist, showing “There are no ads matching your search criteria”.
Is there anyway to not show the shortcode if there is no related ads found?Oh just for suggestion. Maybe you need to add additional parameter to [adverts_list]. The parameter ‘ids’, so we can just show which ads we want. similar like: https://woocommerce.com/document/woocommerce-shortcodes/#section-9
If that parameter is exist ins [adverts_list] then it is very easy to fix this problem.
- The topic ‘Related Ads Problem’ is closed to new replies.