The SEO framework and pro

Hi there,

i use SEO framework instead of Yoast SEO because it is lighter, better and faster.

Now i found a “bug” : it seems the Plugin cannot use data from cornerstone.


Is there a way around or is this a thing for the SEO plugin makers?

Thanks in advance

Okay I got a response from the Seo framework:
https://wordpress.org/support/topic/theme-co-pro-and-seo-framework/

Very interesting. So pro does use shortcodes?
Would be great if there is a Seo framework support without slowing down the site.

Thank you in advance

Appreciate the notes. None of the SEO plugins work correctly with CS and it’s very frustrating. Based on Sybre’s response, this got something to show up in my admin. Let me know if that helps. Ideally we need to have a solution that works regardless of the plugin and I wish I knew the answer to that without rewriting our output from shortcodes. Which probably wouldn’t work anyway when you factor in dynamic loopers.

/**
 * The SEO framework make description turn out correctly
 */
add_filter('the_seo_framework_description_excerpt', function($description) {

  // Get post based on what The SEO framework thinks the Post ID is
  $tsf = tsf();

  $post = get_post($tsf->query()->get_the_real_id());

  // Render Shortcodes
  $content = do_shortcode($post->post_content);

  // Make display turn out nicer
  $content = preg_replace('#<[^>]+>#', ' ', $content);
  $content = strip_tags($content);
  $content = str_replace("\n", ' ', $content);
  $content = preg_replace('/\ +/', ' ', $content);
  $content = trim($content);

  return $content;
});

Hi,
thank you. the solution you provided did work for posts/pages (not for products) but the site is very very slow (nearly unusable). so i had to remove it (the website is on its own dedicated server)

is there any solution that doesn´t slow down the website that much?
thank you in advance