Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: WP-CLI reindexing for single post type #20555

Open
pawelkmpt opened this issue Aug 9, 2023 · 0 comments
Open

Feature request: WP-CLI reindexing for single post type #20555

pawelkmpt opened this issue Aug 9, 2023 · 0 comments

Comments

@pawelkmpt
Copy link

pawelkmpt commented Aug 9, 2023

Is your feature request related to a problem? Please describe.

I have thousands posts if custom post type which got featured image added via delayed Action Scheduler script. It turned out using set_post_thumbnail() does not refresh Yoast indexable. Now, og:image tags are not being added as image value is missing from indexable table.

Posts need reindexing but there's no quick way to do it via command line.

Describe the solution you'd like

I'd like to reindex all post of custom post type but avoid reindexing the whole site which contains thousands of posts. So additional parameter --post-type could be utilized:

wp yoast index --post-type=<custom-post-type-name>

Why do you think this feature is something we should consider for the Yoast SEO plugins?

It'll make developers life easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment