Use shortcode for ads in templates

Posted in: Newspaper
Post count: 25

Hello.

I would like to know if its possible instead of hardcoding the ad code in modules/templates etc to use an ad shortcode.

I have tried echo do_shortcode('[custom_ad_2]') for example, but thats not working.

Kind Regards

Post count: 20688
Post count: 25

Hello Simion,

That’s great.
Is there a list of shortcodes in documentation of elsewhere?

Kind regards

Post count: 20688

Hi,

There is no list unfortunately, these elements are not intended to be used like this. These are page elements that should be placed on pages with the page builder. The shortcodes can be seen for example, if you edit a page that contains them
https://www.screencast.com/t/gaAWHFWG
https://www.screencast.com/t/Y7a7X4kXLqd

In coming updates, there will be more functionality for the tagDiv composer. This will affect how post pages, category pages etc can be created.

Thanks

Post count: 25

Hello Simion,

OK I get that.
It would be easier for developers to use the shortcodes in php if there was a list available.

Kind Regards

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.