Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hi @hube2,

    I’ve yet to start working on this feature, but it’s planned for the next extension:
    https://github.com/sybrew/the-seo-framework/issues/20

    It’s currently possible via filters, but in the next major release, I want to standardize the title output flow; so, that filter might not work then.

    In the meantime, you could use something like below, where you need to adjust the two “custom” lines:

    add_action( 'the_seo_framework_front_init', function() {
    	if ( is_post_type_archive( 'product' ) ) {
    		//= Disables automated description generation.
    		add_filter( 'the_seo_framework_enable_auto_description', '__return_false' );
    
    		//= Sets custom "generated" description.
    		add_filter( 'the_seo_framework_generated_description', function() {
    			return 'My custom archive description';
    		} );
    
    		//= Overwrites title. Might not work after TSF 3.1+
    		//? Title additions are processed automagically.
    		add_filter( 'the_seo_framework_pre_add_title', function() {
    			return 'My custom title';
    		} );
    	}
    } );
    Thread Starter John Huebner

    (@hube2)

    Thanks, That’s what I was looking for. I’ve put filters in place. I currently have ACF options pages to hold the values for these pages so that clients can manage it themselves. I’ll watch for changes to this plugin and change it when I need to.

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

The topic ‘Post Type archives’ is closed to new replies.