Sauter la navigation

[Résolu] Custom post missing in yoast

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

Custom post type with slug "profile" does not work in Yoast Search Appearance > Content Types.

Solution:

You can change post type slug to something else, for example "profile-slug".

Relevant Documentation:

This support ticket is created Il y a 6 années et 2 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Marqué : 

Ce sujet contient 6 réponses, a 2 voix.

Dernière mise à jour par PiotrO586 Il y a 6 années et 2 mois.

Assisté par: Luo Yang.

Auteur
Publications
#1144457

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?

#1144848
post-types.JPG

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/

#1145195

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.

#1145321

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/

#1146327

Thanks for the details, I am downloading the file, will update here if there is anything found

#1146346

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.

#1147856

Thanks Luo,

I was suggested by the Yoast support to post it as a bug.