Home>Support>Add filter to the_content

Add filter to the_content

Hi,

I’m trying to add a filter to the content to add a shortcode to the end of every single post. However, any time I use the following, I see no content at all. Is there anything special I need to do since the page builder likely interacts with the_content filter?

add_filter( ‘the_content’, ‘my_custom_function’ );

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 4 years, 8 months ago Alex S
    Hi, I Work Here

    Hi Kevin,

    We modify the_content using the default priority so you’ll need to set a lower priority (anything higher than 10) to make to append the shortcode. If you’re not too sure how to adjust the priority, please click here.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More