Skip to content Skip to navigation
Back to the main support

Generate automatic meta description from Oxygen Builder / DIVI / WP Bakery / Fusion Builder

If your page builder uses shortcodes to save its data, you will have to add this code to your functions.php file of your child theme (see below).

It will run your shortcodes so SEOPress will be able to generate the automatic meta description for you.

This feature is deprecated since version 5.3
Update: since version 4.5 of SEOPress, go to SEO, Tools, Compatibility Center tab to handle this. No need to add the code below in your theme files.
For Oxygen users, you have to use a must-use plugin as functions.php file doesn’t exist.

Warning: running shortcodes may break your sites. Clear you cache if necessary and test each page carefully.

This code offers an example for Oxygen page builder. By entering %%oxygen%% as a dynamic variable in the meta description template (SEO, Titles and metas, Post types / Taxonomies), the function ct_template_output will be executed. The second snippet uses the Oxygen shortcode to get the post content only. Take the one that best suits your needs.

Modify these variables according to the page builder used. This code is only required if your page builder uses shortcodes to save its data.