Problem:
The 2 post types that I created are:
- Anmeldungen
- Veranstaltungen
They don't show up in the dropdown selector on the post forms page. When I try to edit the post form "Anmeldung", I can't save the settings, as the relation to the post type "Anmeldung" gets lost.
Interesting observation: I can create new custom post types that show up correctly (e.g. the "TestbeitragstypenTD" that I created today). So the problem is related specifically to my 2 post types that I had created a few weeks ago. I had edited the form several times over the past weeks without any problems.
Unfortunately there ist ongoing activity and data input on the production website, so I need a solution to repair the problem without redefining all the data structure.
Solution:
Q1) The 2 post types don't show up in the dropdown selector on the post forms page.
Since you setup those two post types as not "publicly_queryable", so CRED will not be able to edit/create those post, for example you can try this:
Edit the post type "Anmeldungen", in section "Options", enable the option "publicly_queryable", and test again.
More help:
https://codex.wordpress.org/Function_Reference/register_post_type#publicly_queryable
publicly_queryable
(boolean) (optional) Whether queries can be performed on the front end as part of parse_request().
Q2) form "Anmeldung", I can't save the settings, as the relation to the post type "Anmeldung" gets lost.
Same as above, you will need to enable the option "publicly_queryable" for post type "Anmeldungen", and test again.
Relevant Documentation:
https://codex.wordpress.org/Function_Reference/register_post_type#publicly_queryable
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.
Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.
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)
Dieses Thema enthält 3 Antworten, hat 2 Stimmen.
Zuletzt aktualisiert von vor 6 Jahren, 8 Monaten.
Assistiert von: Luo Yang.