Shortcodes in Category Descriptions and AMP Article Exclusion

Posted in: Newsmag
Post count: 1

Hi,

I’ve come back to Newsmag for my new website. All has gone well but I have a couple of questions relating to the theme.

1. I have implemented the filter within a child theme functions.php to enable shortcodes to work in the description of a post category. However, they don’t execute. I am using the MEKS Easy Maps plugin for location sensitive posts. Usually, this would work out of the box without a shortcode, but it doesn’t with this theme. So I thought I would try the shortcode option, but this doesn’t work either. I’m wondering if there is something within this theme that stops shortcodes working, even with the filter added to the functions.php.

This is the filter I am using:

add_filter( 'category_description', 'do_shortcode' );

2. AMP Theme – using the AMP Theme is it possible to exclude categories from showing in the Latest Articles and also on the Front Page Grid. While we can do this on the main website, we can’t with the AMP Theme. It would be useful to be able to filter out some pages, that we don’t want to appear on the front page of the AMP versions too.

Thanks

Mike

Post count: 35449

Hi,

1. Unfortunately, we do not tested this plugin with our theme, therefore we do not know the plugin behavior and how it should work, also we can not provide support for it since we do not know how this should work. Also if the plugin can be use with shortcode in child theme and you set in as in our guide from here , then the shortcode set in functions.php should work if is compatible with our theme.

2. Using the mobile theme with amp plugin, the only settings that can be use are these from Theme panel> Mobile theme -> https://i.imgur.com/VkrPNjo.png -> https://tagdiv.com/mobile-theme-get-mobile-ready-with-newsmag-theme/

Thank you for your understanding!

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