Skip Navigation

[Resolved] Slug issue

This support ticket is created 6 years, 1 month 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
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)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 6 years, 1 month ago.

Assisted by: Christian Cox.

Author
Posts
#1174584

Hi,

I have following event page and custom post type "Events" (slug is "campfire-events")
hidden link (page slug is "events")

The issue is when going to a single event URL is changing to below,
hidden link

Also when I click "Events" in the breadcrumb its go to below page, ( breadcrumb is on the above page), which I can't find.
hidden link

The issue is I don't want to have post type slug in the URL and need to have it as below.
hidden link ( when in a single post)
hidden link (when click breadcrumb)

Your earliest attention is highly appreciated to resolve this issue.

Thanks,
Vindana

#1174883

Toolset Types adheres to standard WordPress URL policies for custom post types, so the post type slug appears in custom post URLs. In order to have "events" appear as the post type slug in the URL, the slug of the Events post type in Toolset > Post Types should be changed from campfire-events to events. However, you already have a custom Page with the slug events, which is likely to cause problems. The way to resolve this in Toolset Views is to create a Toolset WordPress Archive and assign it to the Events custom post type. Then you can recreate the contents from your existing Events custom Page inside the WordPress Archive template. First use the Loop Wizard to create a loop of Events posts. Then you can place any other content outside the wpv-loop tags so it's not repeated.

After that, you can trash your old custom Page Events, or edit it and change the slug to something else so you can use the page as a reference while setting up your WordPress Archive. Then save your site permalinks in Settings > Permalinks, and your new WordPress Archive for Events will begin appearing at the /events URL.

All single event post URLs will automatically be updated to use /events instead of /campfire-events. Let me know if you have questions about this or if I misunderstood your request.