How can I distinguish on a page or a location or an ad category?

[ad_1]

Hello @rafax

Thank you for asking.

Single location/Single category is just a page. We are using shortcode to show the single taxonomy on this page. So you can just simply distinguish it by checking with the page slug.

if( is_page( 'single-location' ) ):

if( is_page( 'single-category' ) ):

You can also get the current taxonomy term slug from the query variable –

$location= get_query_var( 'at_biz_dir-location', '' );

$category = get_query_var( 'at_biz_dir-category', '' );

Please let me know if you need further information.

Kind Regards

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer