• Resolved om20221

    (@om20221)


    Hey,

    Description Meta Tag is not shown on our archive product pages. So we have done some snippet codework. But it is still not shown. We have done this with meta title, and it worked, but description ist even not shown on the sourcecode:

    add_filter( 'the_seo_framework_generated_description',  't11_review_seo_meta_desc', 10,2);
    	
    function t11_review_seo_meta_desc( $title, $args ){
    	if ( $args === null && get_post_type( get_the_ID() ) ==  'product_reviews' ){
    		$product = get_field('name', get_the_ID());	
    		
    		$description = 'Jetzt alles über' .$product.' erfahren und mit echten Nutzererfahrungen vergleichen. Prüfe jetzt, ob das Tool zu dir passt auf Hallo Reviews';
    		}
    	}
    
    	return $title;
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter om20221

    (@om20221)

    Hello, we are a paid customer. Is there any Option to get faster support?

    Best

    Plugin Author Sybre Waaijer

    (@cybr)

    Hello,

    Yes, you can find ways to contact us at https://theseoframework.com/support/.

    Typically, we handle support requests within 72 hours; our resources are limited, and we also need to manage servers, maintain the code, add features, document everything, etc.

    That said, your inquiry requires development time; I usually push those back, for they can take hours to fulfill.

    If you know your way around code, this is a great template to start from; it’s even in German: https://gist.github.com/sybrew/1e61b12893c0089353c53f3bcc126a6b. Lines 32 and 48 contain custom sentences you may want to adjust. Line 45 tries to obtain a custom field you might not have, so you need to remove that.

    Thread Starter om20221

    (@om20221)

    Hey, the example is way to complex. Maybe you can have a very fast look on my posted code?

    Thank you so much!

    Thread Starter om20221

    (@om20221)

    Hello, any feedback?

    Plugin Author Sybre Waaijer

    (@cybr)

    Hello! Sorry for the delay.

    That complexity is required if you do not want to encounter strange bugs in the administrative interface. WordPress doesn’t have an API handling admin-based requests that’d simulate the front end; this is what we figured via TSF. It looks daunting because it uses multiple Advanced Custom Fields — it also prevents crashing should you deactivate Advanced Custom Fields (get_field() isn’t available without ACF).

    Now I reread your request, isn’t using the inputs at “SEO > Post Type Archive Settings” a workable solution?

    If not, here I included the sentence you brought and added a new one on line 34, so now you know where to enter/adjust the metadata: https://gist.github.com/sybrew/7594d1c81589571a1f25537e1d22c6f6.

    I’m unsure if you’re facing another issue and what you wish to achieve precisely, so my proposed solution is guesswork. If you desire a comprehensive/tailored answer, please share with me what you have right now and what you want instead. Links to the pages affected/involved might be helpful.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Description – Archive – CPT’ is closed to new replies.