created a custom slug function
-
maybe it will help someone:
it changes the slug / name of an event to something different…
at the moment it does this:
instead of just having the name and a counter for the slug it appends the location and the date to the slug
my-custom-event-12 -> location-slug -y-m-d- post-title
its not perfect… and if you change the location, you have to update the post twice due to the new location isnt stored in the mySQL but the slug is genereted from mySQL fields
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘created a custom slug function’ is closed to new replies.