Skip Navigation

[Resolved] Unable to remove custom post types from views after custom post type name change

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/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 2 months, 1 week ago.

Assisted by: Waqar.

Screenshot 2023-09-25 at 17.10.18.png
Screenshot 2023-09-25 at 17.23.47.png

Tell us what you are trying to do?
In the legacy Views interface I can see my views - and for some of them it is showing "missing post type".

I think this because when I created the view - the CPT was called one thing - but I then had to change the name at a later date.

So now Toolset view still thinks these old CPTs are selected to be displayed in the view (even though they don't exist.)

As they don't exist - I can't therefore remove them from list of CPTs to select for the view (as they are not there).

So do I:

A: Recreate the view completely
B: Create another CPT of the name that is now missing - then deselect it in the view - then delete that CPT again.

Graphics showing what I can see in the Views interface and the CPT selections that are current available in the View itself.



Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)


Thank you for contacting us and I'd be happy to assist.

The views store the selected post type's slugs in the settings. So if a selected post type's slug is changed, you'll experience what is shown in your screenshot.

I don't foresee any error or performance drawback if the views are left as they are. However, to fix them you can follow these steps:

1. You'll first restore the change CPT's slug back to what it was before.

2. Then when you open the view for editing, you'll be able to unselect that CPT from the content selection settings.

3. After that target CPT has been changed from all the views, you can change its slug back to the new one.

I hope this helps and please let me know if you need further assistance.


This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.