Sauter la navigation

[Résolu] Custom post type loses the layout after saving.

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

Problem: When I save a post in a specific custom post type, it loses its Layout. The Layout box is hidden, so I cannot assign the Layout again.

Solution: Disable any custom code that hides the Layout meta box.

This support ticket is created Il y a 6 années. 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

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

Dernière mise à jour par rafaelF-3 Il y a 6 années.

Assisté par: Christian Cox.

Auteur
Publications
#1190596
Screen Shot 2019-01-24 at 11.06.33 AM.png

I am trying to: edit a custom post entry. After hitting the publish button, it disappears from the front-end.

Link to a page where the issue can be seen: lien caché

I expected to see: Just as normal. lien caché

Instead, I got: Blank. Also in the layouts page, there's an alert that a post type is not using the template, however it is properly assigned. After I save an item, the alert shows up. Screenshot attached.

#1190611
#1190693

It seems I'm unable to access the Plugins page now. Can you provide my User with admin-level permissions? If not, I need you to create a site clone using the information provided here: https://toolset.com/faq/provide-supporters-copy-site/

#1190696

My issue is resolved now. It was caused by a function created to hide the layout meta boxes in the template.

Thank you!