Home › Forums › Calendar Products › Events Calendar PRO › Remove extra category slug from single event
- This topic has 7 replies, 3 voices, and was last updated 7 years, 2 months ago by Mark.
-
AuthorPosts
-
February 14, 2017 at 9:16 am #1234680MarkParticipant
Hi,
I’ve been looking everywhere for this so please excuse me if I’ve missed it.
How do I remove the extra “category” slug that appears on individual events e.g.
https://www.financialtrainingassociates.com/course/category/financial-modelling/
I would like it to display https://www.financialtrainingassociates.com/course/financial-modelling/
Thanks a lot,
Mark
February 15, 2017 at 6:11 am #1235148AndrasKeymasterHey Mark,
Thanks for reaching out with your question.
You could try a plugin like this one for that. I didn’t test it so cannot say if it does the job or not.
Let me know how that works out.
Cheers,
AndrasFebruary 15, 2017 at 8:11 am #1235405MarkParticipantThanks for coming back Andras,
I tried a bunch of things including x3 plugins and including the one you
mentioned there. None of them take out the category slug. Let’s not worry
about it. I was just hoping this might have been answered before and I had
missed a ready solution. Thanks.The main thing I am wrestling with is getting my regular navxt breadcrumbs
plugin to match the tribe calendar URL. Again I have experimented with
about x3 breadcrumb plugins. Navxt does the best job and copes with my
other custom posts (course-reviews and testimonials) plis regular standard
posts (stories) just fine. No stray ‘category’ slug there!I notice from the forums that other people have had trouble getting a
popular plugin like navxt to work with the tribe calendar URLs. I am not
technical enough to understand this but it seems to me to be something to
do with how the posts are created with tribe calendar and perhaps not
providing the information in a form that the breadcrumb plugins can pick up
on. This is a strange one because, as mentioned, I can get navxt working
fine with my all my other custom posts.Is there some existing guidance on getting tribe events working with the
(ever popular) navxt breadcrumb plugin? Have I missed something on this
one?February 16, 2017 at 8:26 am #1238659AndrasKeymasterHey Mark,
As far as I know standard WP functions such as ‘get_term_link()’ work just fine with our categories. So far there is no guidance for the navxt plugin.
Though we are limited on supporting customizations, if you could explain in detail what you are trying to achieve, and what is the result you are actually getting, I might be able to give you some pointers which way to go forward. If you can share some screenshots that will be even more helpful.
Cheers,
AndrasFebruary 17, 2017 at 5:11 am #1239823MarkParticipantThanks for the offer to look at this further! I’ve got a funny feeling that where it’s going to go next is you telling me that you don’t provide support to get NavXT or Yoast breadcrumbs working with the Tribe Calendar! I think I’ve got most of the way there now by fiddling extensively with the settings in NavXT.
But I still have a residual error in Google data testing for the Tribe Calendar breadcrumbs which I am confused about because I don’t get the same error when I run this regular category URL through data testing https://www.financialtrainingassociates.com/category/modelling-course/. That one goes through data testing just fine.
For the record, and for someone else who’s trying to do this, I have:
1) copied my index.php and put it in my child theme, renaming it to archive.php
2) inserted NavXT breadrcumbs code at the top of the archive.php page
3) used the attached (see screenshot1) in NavXT settings. It’s a manual ‘fiddle’ but it worked
4) an example of the result is at https://www.financialtrainingassociates.com/category/modelling-course/ – NavXT works for regular archive pages and is error free in Google data testing
5) used the NavXT settings in screenshot2 in the “Post Types” tab for “Event”
6) used the similar settings in screenshot3 in the NavXT “Taxonomies” tab for “Event Categories” – see screenshot3. These settings are similar to what I did at step (3) which worked for my regular category pages.The result is the breadcrumb at
https://www.financialtrainingassociates.com/course/category/financial-modelling/ looks fine (like the one at https://www.financialtrainingassociates.com/category/modelling-course/) but, unfortunately, the first URL gives me a bit of an error in Google data testing. I can’t work out why but I’m a lot further on with this than I was yesterday!Thanks for your thought time…
February 17, 2017 at 5:54 am #1239847MarkParticipantStop press!
I think I got it working. NavXT breadcrumbs are as I want them to appear. No errors in Google data testing. it took a lot of fiddling with the NavXT settings.
At step (6) there was a mistake in my code. I’ll post it here in case anyone else is struggling with the same issue. Here is the code that worked in the NavXT settings for me:
`<span property=”itemListElement” typeof=”ListItem”><span property=”name”>Course</span><meta property=”position” content=”2″></span> >
<span property=”itemListElement” typeof=”ListItem”><span property=”name”>Category</span><meta property=”position” content=”3″></span> >
<span property=”itemListElement” typeof=”ListItem”><span property=”name”>%ftitle%</span><meta property=”position” content=”4″></span>Thanks for your thinking time!
February 20, 2017 at 1:43 am #1241996AndrasKeymasterHey Mark,
I’m so stoked to see you got this figured out! You are awesome!!!
And thank you for sharing this, this is helpful for users with the NavXT plugin. Great stuff!
Since the issue seems resolved I am going to close this ticket, but if you need anything else related to this topic or another please post a new one in the forum and we will be happy to help you out.
Cheers,
AndrasPS: If you like our plugins, and you didn’t yet do so 🙂 we would be happy to receive a review in the wordpress.org repository. Thanks!
https://wordpress.org/support/plugin/the-events-calendar/reviews/PS2: We’d be also grateful if you would give us feedback on your satisfaction with support. Just click on one of the classy looking emojis below. 🙂 If you can spare a few words, that’s even better. Doublethanks!
-
AuthorPosts
- The topic ‘Remove extra category slug from single event’ is closed to new replies.