Problem:
I want to disable the single pages for this post type so that trying to access the urls for each individual post in the account managers post type will simply return a 404.
I've unchecked the "has archive" and "Pages" options in the Account Mangers post type options but the individual pages still show.
Are you able to tell me how to disable these single pages from being displayed?
Solution:
I suggest you edit the post type, in section "Options", disable option "publicly_queryable", it will disable the single "Account Manager" post in front-end. 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().
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.
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)
This topic contains 3 replies, has 2 voices.
Last updated by 6 years, 10 months ago.
Assisted by: Luo Yang.