This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Add filter to the_content

6 years ago · Last reply by Alex S 6 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 6 years, 1 month ago

    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.

Have a different question or issue?

Start New Thread