Home › Forums › Calendar Products › Events Calendar PRO › Change order of meta fields and custom fields
- This topic has 4 replies, 3 voices, and was last updated 8 years, 9 months ago by Support Droid.
-
AuthorPosts
-
October 17, 2014 at 10:14 am #816116Jennifer LewisParticipant
We added some custom fields under “other” and we would like for them to display after the “details” meta field but before the “location” meta field. I tried deciphering the theme files to figure out how to reorder them, but couldn’t figure out which file to edit. Is there a simple way to reorder the fields either through the settings, editing the plugin files, or adding a function? Thanks!
October 17, 2014 at 11:03 pm #816997JoshParticipantHello santafeplayhouse,
Thanks for reaching out to us!
You can override the template for the event details by using the Themer’s Guide to copy the “views” -> “modules” -> “meta.php” file into your theme and changing the order of the way items are output there.
Hopefully this should get you pointed in the right direction. If you have any further questions please don’t hesitate to ask.
Thanks!
October 20, 2014 at 10:49 am #821992Jennifer LewisParticipantThank you. I looked through that file, but I cannot figure out which line is calling for the ‘other’ custom field option that Events Calendar Pro offers. I see the ‘details’, ‘map’, and ‘organizer’, but I cannot figure which line I would rearrange in order for ‘other’ to come before ‘map’.
October 21, 2014 at 8:38 pm #826019JoshParticipantHello santafeplayhouse,
Thanks for following up with us!
The “Other” section which includes the Additional Fields information hooks into the previously mentioned template at the:
do_action( 'tribe_events_single_event_meta_primary_section_end' );
h0ok. So, you can move the sections around the “Other” section by moving them around this hook within the file. Again, you’ll only want to modify this file once it’s been copied to your theme using our Themer’s Guide.
Let me know if this helps.
Thanks!
July 7, 2015 at 6:31 am #983543Support DroidKeymasterThis 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 order of meta fields and custom fields’ is closed to new replies.