• Resolved MRLR2

    (@mrlr2)


    Hi, thanks for the plugin. I have a page linked to a category. Most of the Page content shows up but any shortcode I have on there does not seem to work. Shortcode shows up as text on the page.

    I’ve tried wrapping the shortcode in some code but haven’t been able to get it working. Any help is much appreciated.

    https://www.ads-software.com/extend/plugins/page2cat/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,
    I have the same problem. I created a page called “Blog” and the short code [showauto], the page displays “Blog” and the short code below. Thank you for your help

    The solution would be in file page2cat/page2cat_class.php line 101, wrap get_the_content() with do_shortcode function. Result would be like this:

    echo '<div class="aptools-category-content">'.do_shortcode(get_the_content()).'</div>';

    If this could be added on the next update, that would be great.

    I tried filtering the content(to avoid changing the core) by adding it to functions.php but doesn’t work for me. Here was my code:

    add_filter('the_content', 'do_code', 21);
    function do_code($content) {
    	if(is_category()) {
    		$content = do_shortcode($content);
    	}
    	return $content;
    }

    Plugin Author swergroup

    (@swergroup)

    Hi, it should be fixed in the next update anyway (major bugfix release is scheduled some time after WP 3.6). Thank you for caring!

    Thread Starter MRLR2

    (@mrlr2)

    @xmod08 @swergroup – Thank you so much!!!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortcode in linked page not working’ is closed to new replies.