Home › Forums › Calendar Products › Events Calendar PRO › Editing Organizer Link Names
- This topic has 7 replies, 4 voices, and was last updated 9 years, 10 months ago by
Kelly.
-
AuthorPosts
-
June 2, 2016 at 8:21 am #1121632
Kelly
ParticipantGood Morning! We are using our Events Calendar to list all of our senior fitness classes over the entire country – getting to be lots of them now!. We also have Regional/Franchise Owners, who are listed as “Organizers” in Events Calendar Language. Thus, the Regional Owners “About Me” page URL is formatted as:
http://franchise.live2bhealthy.com/organizer/heather-bartley/I am interested in making this a shorter URL so that it could possibly be printed on business cards and other marketing materials. Is there a way to edit the URL? The only edit option I currently have is:
http://franchise.live2bhealthy.com/organizer/%5BEDIT}/June 2, 2016 at 12:56 pm #1121816Nico
MemberHi Kelly,
Thanks for reaching out to us! I can help you here…
You can change the organizer slug by opening an organizer in the back end and changing the field under tittle box: https://cloudup.com/c8grTv7YCh6
Once you change that be sure to Update the organizer. That should let you change the URL of each of them.
I’m not sure about the above, looks like something is failing there. Please send me a screenshot if this comes up!
Best,
NicoJune 3, 2016 at 5:54 am #1122111Kelly
ParticipantHi! Thanks for the quick response! I am attaching a screenshot below. When I click Edit below the organizer name, it only allows me to change the actual name of the organizer. I would like to change it to:
franchise.live2bhealthy.com/heather-bartley
In other words, remove “organizer”
Its too long of a URL to print on marketing materials, but we think, as a franchise operation, we could use these organizer pages as their local websites.June 3, 2016 at 7:58 am #1122159Nico
MemberThanks for following up Kelly!
It’s not possible to remove the organizer part of the URL. You can change that for something else if you would like, maybe org or other word.
Please let me know if this works for you and I’ll prepare a snippet to do so,
Best,
NicoJune 3, 2016 at 9:05 am #1122216Kelly
ParticipantHow about if we change it from “Organizer” to “Region”? I am somewhat handy with making minor code adjustments, so with adequate directions, I should be able to figure it out.
Its just like we changed “Events Calendar” to “Class Schedule” I suppose. Organizer makes sense if you have Events, but it seems odd when you speak of fitness class schedules.June 6, 2016 at 6:14 am #1122926Nico
MemberSure it makes more sense! To change this just paste the following code in your functions.php file:
/**
* Alter the organizer post type slug.
*
* Remmber that if rewrite-related properties (such as the post type slug) are
* changed you may need to flush permalinks by visting the Permalink Settings
* screen.
*/
function modify_organizer_type_properties( $properties ) {// Change the slug
$properties['rewrite']['slug'] = 'region';// Change some labels
//$properties['labels']['name'] = 'Region';
//$properties['labels']['add_new'] = 'Create new region';return $properties;
}// This hook is only available if Events Calendar PRO is activated
add_filter( 'tribe_events_register_organizer_type_args', 'modify_organizer_type_properties' );
Once the code is in place please go to WP-Admin > Settings > Permalinks > Save Changes, this will re-generate the site links to use the region slug!
Please give this a try and let me know about it,
Best,
NicoJune 21, 2016 at 9:35 am #1129887Support 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 ‘Editing Organizer Link Names’ is closed to new replies.
