Support Forum

Advert Plugin Not Allowing Shortcode

MW Michael Wilding
Michael Wilding
Member

I’ve tried putting in a WordPress shortcode into the box from the ad plugin we use, but it doesn’t work and just shows the shortcode. I don’t have JS code, only PHP code as an alternative. Can I not use a wordpress shortcode or PHP code in the plugin? If so I may need to return it as I don’t think I’ll be able to use it.

8 Answers

New Answer

SS SP Community Support
SP Community Support
Admin

Hi:

Adverts don’t take short-codes. It takes text and HTML or a JS script.

MW Michael Wilding
Michael Wilding
Member

Thank you. I’ve got it working now, but I can’t get the before/after topics to work. The only one I can get to work is Above All Forums, none of the others seem to go in. What could be the cause of preventing that? The forum is at https://www.raceadvisor.co.uk/forum

SS SP Community Support
SP Community Support
Admin

Hi:

Its hard to tell why that might be without more context.  Maybe post screen shots of your settings for the ad group and the ads?  That might provide a clue as to what might be going on.

Thanks.

MW Michael Wilding
Michael Wilding
Member

That would help! I’ve attached two screenshots, both the ad and group are active. You can see that I’ve set the ad to show in four places, however it’s only showing at the top of the forum, the first one.2019-09-21_1141.png2019-09-21_1142.png

SS SP Community Support
SP Community Support
Admin

What happens if you use a regular text/html ad instead of a JS ad?  Do those show up all four locations?

Thanks.

SS SP Community Support
SP Community Support
Admin

hmmm…I am out of ideas as to what might be causing the issue.  I just double-checked on our qa servers to verify that it does work and that we didn’t somehow inadvertently break something.  As far as I can tell it works with the usual suspects of plugins installed (eg: wc and such).  There might be a plugin installed on your site or even a theme that is getting in the way of things.

But there might be a workaround.  Try creating ad-sets for each location.  So each adset would have one location instead of multiple and see if the ads show up in those locations then.

Thanks.