Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Not the dev but I believe this works. There are 2 filters for the meta description in the docs linked here, https://wpslimseo.com/docs/hooks/

    slim_seo_meta_description_generated and slim_seo_meta_description. These will change the meta content and the og:description content

    slim_seo_meta_description will modify the output directly without changing the metabox content.

    slim_seo_meta_description_generated changes the generated content (Meta description generate as you type)

    
    add_filter( 'slim_seo_meta_description_generated', function ( $description ){
            $description = get_post_field('post_content', $post_id);
        return $description;
    } );
    

    Also you might want to add in a conditional if is_product() since you are only targeting Woocommerce Products

    Thread Starter obokmaobao

    (@obokmaobao)

    CPT: Wares
    Taxonomy: Wares Category

    I have managed to replicate the bug, and found out how it happens…
    the breadcrumb does not show child terms if the child term is alphabetically greater than the parent term.

    This “correct” breadcrumb will not show because Pins is alphabetically greater than Lifestyle :
    Home >> Wares >> Lifestyle >> Pins >> Post
    Published post result:
    Home >> Wares >> Lifestyle >> Post

    This breadcrumb will show correctly because Cushions is alphabetically lesser than Lifestyle:
    Home >> Wares >> Lifestyle >> Cushions >> Post

    Is there anyway this can be fixed?

    • This reply was modified 2 years, 11 months ago by obokmaobao.
    • This reply was modified 2 years, 11 months ago by obokmaobao.
Viewing 2 replies - 1 through 2 (of 2 total)