slinky39
Forum Replies Created
-
And now it works with the code
if(function_exists('the_ad')) the_ad(229);
Still not working on the trivia PHP page, but I will eventually get that one figured out. Thanks.It must be a misunderstanding on my part. I understand “auto” to mean automatic selection. Maybe it is a different meaning?
I have what I believe are auto ads being placed after the content on the pages where it works. Is do_shortcode() the correct way to place an add using PHP code?Manual will not work directly in the PHP code. That single link doesn’t indicate the correct way to show ads using PHP and shortcode.
For those that work, I have used placements under Ads-Display Conditions. This works for most of the posts so far along with the front page / about / trivia. What I am having trouble with is he custom PHP Theme pages that search and display from a REST service. On these I have unsuccessfully tried placement on the base page and PHP shortcode insertion (this may work if you have the correct insertion method to suggest). From what I could find, do_shortcode is supposed to work for inserting the shortcode in theme pages.