• Hi,

    Does the plugin process WP shortcodes?

    I’m asking because when I try to use plugins like Ad Inserter and Advanced Ads to show Adsense ads on my blog, the ads don’t display.

    Instead, the shortcodes produced by those plugins show up in the content.

    Any way to get around this?

    Thank you in advance!

    Sophia

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi sophia21,

    here is Thomas, the developer of Advanced Ads.

    It happens often that shortcodes are not enabled for custom input fields in themes and plugins, so I hope it is ok that I leave this link to a post I wrote to enable shortcodes in category descriptions.

    https://webgilde.com/en/shortcode-not-working-category-description/

    Maybe this helps the guys from Pagination For Posts to find a quick fix for you.

    Best,
    Thomas

    Thread Starter sophia21

    (@sophia21)

    Hi Thomas,

    Thank you for your inputs.

    As mentioned on the page you linked to above, I added this line to the functions.php file on my test blog:
    add_filter( ‘term_description’, ‘do_shortcode’ );

    It seems to make no difference whatsoever – the ads don’t show up when using pagination. The shortcodes do.

    Of course, this could be because I have no idea about coding and may have added the line at an inappropriate place. I added it somewhere in the middle of the file like so:

    (Lots of code above this line)
    wp_enqueue_script( ‘comment-reply’ );
    }
    }
    add_action( ‘wp_enqueue_scripts’, ‘write_scripts’ );

    add_filter( ‘term_description’, ‘do_shortcode’ );

    /**
    * Add customizer style to the header.
    */
    (Lots of code below this line too)

    I’m not using the Yoast plugin on my test blog, so that shouldn’t be the issue.

    Anyhow, thank you once again for your inputs. I’m off to find some other solution for pagination and ad displays.

    Sophia

    Hi Sophia,

    I am sorry that this didn’t help. It was more a thought for the devs of the Pagination plugin. They should know how to adapt it and whether this is possible at all.

    Thomas

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Process WP Shortcodes?’ is closed to new replies.