loop-ad_listing.php and global $cp_options: create a IF and resuce cp_option values
Hi everyone!
I would like to use the value of a field of an ad to run an "if" in the file loop-ad_listing.php
I wish if the option: cp_buy_sell_radio_button is equal to "Sell" show me a picture if instead cp_buy_sell_radio_button is equal to "Buy" will show another.
I created this code but doing the var_dump of $ cp_options-> cp_compro_vendo_radio_button me NULL.
I created this cycle if between the line 24 of file loop-ad_listing.php and line 26 of file loop-ad_listing.php.
In the first line already I include: global $ cp_options;
Here is the if statement that I created in the file: