Hi there!
I’m working on it 🙂
- Filter wise: https://github.com/sybrew/the-seo-framework/issues/298.
- Option wise, I still need to create an abstract and dynamic options page for all extensions to hook into; this requires a lot of planning.
The idea is that the options page will allow you to select the enabled post types, and thereafter the default Articles type for each post type.
Thread Starter
awpu
(@awpu)
I tried this filter, but it’s not re-ordering?
add_filter( 'the_seo_framework_articles_post_type_support', function( array $types = [] ) {
// Reorders "post" default selection. The first is auto-selected.
$types['post'] = [ 'BlogPosting', 'Article', 'NewsArticle' ];
return $types;
} );
-
This reply was modified 7 years, 5 months ago by
awpu.
Hello again 🙂
My apologies for the confusion. The filter was a proposal, and it’s not implemented.
I forgot I implemented another filter.
You’d want to use that filter, instead. This is assuming you want BlogPosting by default:
add_filter( 'the_seo_framework_articles_default_meta', function( $defaults ) {
$defaults['type'] = 'BlogPosting';
return $defaults;
} );
The filter above will work for all new posts. It’ll also affect all old posts where you haven’t saved the metadata since activating the extensions.
I hope this helps! Cheers 🙂