Home › Forums › Calendar Products › Events Calendar PRO › Change /event/ part of URL on single page in line with category
- This topic has 5 replies, 4 voices, and was last updated 9 years, 9 months ago by
Lucy.
-
AuthorPosts
-
July 4, 2016 at 6:03 am #1135074
Lucy
ParticipantHello,
I love your plugin!
Just one thing, I have given my event posts one of 3 different categories for the type of event they are. I am wondering whether this can be reflected in the URL for the single event posts – so that /event/ could be changed to eg. /class/, /workshop/ or /community/ depending on the category given to that event? For 301 redirect purposes.
Thanks in advance,
LucyJuly 4, 2016 at 11:59 pm #1135347Brook
ParticipantHowdy Lucy!
I would love to help you with this.
In theory what you want is very possible. In practice that is going to be difficult to implement and rather prone to breaking with plugin updates. I would strongly advise you not to do this.
But if you don’t wish to heed my advice and have some mad programming skills: You will need to familiarize yourself with the WP Rewrite API. All of our URLs are a part of it. It sounds like you would want to add a few a rules to it that point to those categories events. With those in place visiting those pages will now take you to where you want to be, but nowhere on the calendar will link to them. The easiest way to solve this would be using your .htaccess file (or equivalent) to create redirects that push those categories to the new URLs you added.
Does that all make sense? Will that work for you? Please let me know.
Cheers!
– Brook
July 5, 2016 at 7:41 am #1135438Lucy
ParticipantHI Brook,
Thank for your reply.
I think i’ll take your advise and not change the URLs of the event posts, as I don’t want to risk messing anything up! I will look at other ways I can improve my 301 redirects / SEO.Thanks again,
LucyJuly 5, 2016 at 8:22 am #1135470Brook
ParticipantThat’s probably wise. 🙂 WordPress is very customizable and does let you alter this stuff, but in all of my client sites I try to avoid it if possible. It is a finicky API, particularly the more plugins you have installed. They must all share the same space and it gets crowded and unpredictable quickly.
Fortunately Google and company seem to note value URL structure as highly as they used to, and so focusing on other areas is usually the best place to spend your time anyways.
Please let me know if you have any more questions. Cheers!
– Brook
July 20, 2016 at 9:35 am #1141947Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Change /event/ part of URL on single page in line with category’ is closed to new replies.
