godaddy-wordpress / godaddy-wordpress/coblocks
ISBAT Open graph tags from “The SEO Framework” not injected on custom post types
- Dominant language
- JavaScript
- Stars
- 794
- Forks
- 142
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug:
CoBlocks is incompatible with The SEO Framework, this applies custom post types that use init hook with the priority of 10
### To reproduce:
1. Create a custom post type using init hook
2. Add a sample post using the newly created custom post type
3. Install The SEO Framework plugin(free plugin)
4. Add OG meta tags to the created post
5. Check OG: https://opengraphcheck.com/
-->
### Expected behavior:
I should see of metadata inserted
### Isolating the problem:
- [ ] This bug happens with no other plugins activated
- [x] This bug happens with a default WordPress theme active
- [x] This bug happens **without** the Gutenberg plugin active
- [x] I can reproduce this bug consistently using the steps above
### WordPress version:
5.8.1
### Gutenberg version:
/
### Temporary fix:
Insert the following code snippet to override the function priority set in /includes/class-block-patterns.php on line 33
`add_action( 'init', array( $this, 'load_block_patterns' ), 15, 0 );`
Issue and the fix initially submitted by user henjak on WordPress.org: https://wordpress.org/support/topic/open-graph-tags-from-the-seo-framework-not-injected-on-custom-post-types/
Contributor guide
Assessment
This issue has not been assessed yet.