• Resolved itsjonesyy

    (@itsjonesyy)


    Hi,

    I have a product taxonomy named ‘brands’ and it has 450 items in it. I don’t have the time to go into each one and set the appropriate meta description and open graph description. Currently, the automatic values in these fields which has been given by the plugin is unfortunately pulling from an area that doesn’t make sense for SEO.

    Is there an automated way for me to set my own global value for these fields so I can set it once and be done? For example ‘View brands at site.com’. I’d have this in both meta and open graph desc. fields.

    Thanks, great plugin btw ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter itsjonesyy

    (@itsjonesyy)

    Hi, is there a solution to this please?

    Plugin Author Sybre Waaijer

    (@cybr)

    Hello!

    Sorry for my super belated reply; this month has been (and still is) most hectic for me, with new releases, sales, etc.

    First, I recommend you not set the meta description to the same value. If you do, Google will give you warnings in their Search Console because they want every page to be unique.
    https://developers.google.com/search/docs/advanced/appearance/snippet#meta-descriptions

    Google will also generate descriptions for you if the one provided by your site makes little sense for the search results.

    Open Graph is a different story. With that, there’s no “algorithm” sorting through the metadata of links shared.

    To implement a custom description generator, you’ll need to use filters.
    Via this filter you can pass large texts, which TSF will then parse for you.

    add_filter( 'the_seo_framework_fetched_description_excerpt', function( $excerpt, $page_id = 0, $args ) {
    
    	// Example. Do make something better from this:
    	$excerpt = 'View brands at site.com';
    
    	return \the_seo_framework()->s_excerpt_raw( $excerpt );
    }, 10, 3 );

    The filter needs tweaking and tuning to get it to your liking. Please get in touch with a developer if you need help with that.

    To learn more about our filters, please see https://tsf.fyi/docs/api/filters.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Single description for all items in a taxonomy?’ is closed to new replies.