Hi,
I use Yoast and have a few custom post types. Two of them are set as archives with mostly the same configuration. However, only one of the post types is shown in Yoast Search Appearance > Content Types. Any idea why?
Hello,
Are you using Views WordPress Archive to customize the search result page?
If it is, please edit that WordPress Archive, in section "Loops Selection", under option "Search results", click button "Edit", and enable those specific post types, see screenshot, post-types.JPG
More help:
https://toolset.com/documentation/user-guides/creating-wordpress-custom-post-archives/
Hi Luo,
I did enabled that for the post type missing in Yoast, but this didn't change anything. Still the post is missing in Yoast Content Types.
This is abnormal, please check these:
1) In case it is a compatibility problem, please deactivate other plugins, and switch to wordpress default theme 2017, and test again
3) If the problem still persists, please provide database dump file(ZIP file) of your website, also point out the problem page URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/
Thanks for the details, I am downloading the file, will update here if there is anything found
Here are what I found:
1) I have tried the same custom post type slug "profile" with a fresh wordpress installation + latest version of Yoast SEO + Types plugin, the same problem persists,
2) I have changed the post type slug to something else, for example "profile-slug", then it works,
So the post type slug "profile" should be a reserved "slug" by Yoast SEO plugin, I have searched it in google, but can not find any document about it, you might consider to change the post type slug in your website.
Thanks Luo,
I was suggested by the Yoast support to post it as a bug.