Skip Navigation

[Resolved] 'Singles' page not displaying for custom post types

This support ticket is created 6 years ago. 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 8 replies, has 2 voices.

Last updated by Minesh 5 years, 12 months ago.

Assisted by: Minesh.

Author
Posts
#1147667
wordpress-settings-permalinks.png
toolset-posttypes-businesses.png

I am trying to: Create 'Single' page templates for my different post types. I believe the main issue is the custom permalinks base "/cannabis-black-book/". Archive pages are working properly however once you click on a post, the single page does not display. I will upload screenshots of settings using as an example my 'businesses' custom post types.

The current settings on the attached word document allow the archive pages to display properly, however single pages are not displaying... for example you can view:

hidden link (Businesses Archive Page - Displaying properly)
hidden link (Business Single Page - Not Displaying)

FYI: Both Archive and Single page templates are created with Elementor

#1148511

Sorry to be impatient, but I really need some assistance with this. This item is holding up a ton of activity that needs to be completed. Thank you for your attention.

#1148962

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - what if you set your permalink back to /%postname%/ and save the permalink settings and then edit your post type and under rewrite section select "User custom URL format" and add your custom url format "/cannabis-black-book/ there and save the settings.

Does that help?

#1148994
post type options2.PNG
wordpress permalinks2.PNG

When I set it up that way which makes perfect sense to me it ends up breaking the archive page as well as the single page.

#1149010

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

What if you try to set custom archive slug under section has archive? (at the textbox just below has archive section)?

#1149024
wordpress permalinks3.PNG
post type options3.PNG

Attempted entering in the custom archive slug box:
- /cannabis-black-book/
- /cannabis-black-book/businesses/
- /businesses/

No Archive Page, No Single Page.

Also Attempted all three changing the "rewrite" to use wordpress URL logic.... No Archive Page, No Single Page.

There is only one way (so far) that I have found the site will display both the archive and the single page and its without the wanted slug "cannabis-black-book". I've set it up that way now for you to see... screenshots attached and you can visit:
hidden link (Businesses Archive Page - Displaying properly)
hidden link (Business Single Page - Displaying properly)

Something is wrong deeper in I believe. We are not receiving expected results with proper setups.

#1149034

Sorry had an extra 'slash' in those addresses:
hidden link (Businesses Archive Page - Displaying properly)
hidden link (Business Single Page - Displaying properly)

#1149035

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Could you please share access details so I can check whats going wrong there.

I have set the next reply to private which means only you and I have access to it.

#1149055

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - I checked with minimum installation (only Toolset plugins installed) and I applied the slug businesses/cannabis-black-book to rewirte section and has_archive section and it just works fine so the issue looks link specific to your install.

Any customizations with URL using place-holders, you need to add rewrite rules and that needs custom programming. Either you should check by deactivating all your plugins and check with minimum install or following are a few links, which may help you achieve this, please have a look:
Plugin: https://wordpress.org/plugins/rewrite/
WP Plugins Repository Search: https://wordpress.org/plugins/search.php?q=url+rewrite

Few Articles that may help you:
0. hidden link
1. hidden link
2. http://code.tutsplus.com/articles/using-wordpress-for-web-application-development-available-features-part-6-url-rewriting-or-routes--wp-34326
3. hidden link