Home › Forums › Calendar Products › Events Calendar PRO › Make additional fields appear in another location
- This topic has 6 replies, 3 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
May 14, 2015 at 4:43 pm #962803
Stuart
ParticipantHello,
I recently purchased the events calendar pro and wootickets plugins and I am impressed with how well they work out of the box. I’m setting up events for a museum that has fundraising cocktail parties, forums, and the like, during the summer season. They may want to have several paragraphs of description about the event, to appear on the event page. I can use the text entry in the event (post) itself, and that appears after the featured image and before the ticket prices (I used your fix to make the ticket prices appear near the top of the event.) I can also use the additional fields “text” to add textual content. Is it possible to be selective about where the post content and the additional fields text appear? I read your “themer” document and I have migrated the single_event, meta, and additional_fields php files to the correct area in my theme. However, I am having some issues in moving the display of the two text content areas. Can you provide some insight into what to modify? Even better, are the various blocks available as shortcodes that I can use to compose my own event page?
Thanks much for your help! Keep up the excellent work.
Cheers,
Stu
May 15, 2015 at 5:08 am #962861George
ParticipantHi Stu,
You indeed can be selective about where the post content and the additional fields text appear, although most of the things about your question boil down to code customizations. We don’t offer support for customizations, unfortunately, and the various things you’re describing are not available as shortcodes.
The official Themer’s Guide that you mentioned, this one → https://theeventscalendar.com/knowledgebase/themers-guide/, should be helpful, despite your mentioning that it didn’t help much. If you make the necessary duplicate files in a new /tribe-events folder in your theme, editing these files should solve your problems. What specific things are not happening?
Finally, for now, one thing to note is that if your event views are being updated fine, but it’s your other content templates that don’t seem to be respecting the changes you make, then I’d recommend diving into your theme files directly and moving things around there.
I hope this helps Stu!
May 15, 2015 at 6:18 am #962886Stuart
ParticipantThis reply is private.
May 19, 2015 at 10:08 am #963636George
ParticipantHi Stu,
Moving code around without knowing code well can indeed lead to the sorts of problems you’re facing here. If there are things meant to be in a loop, for example, but you move them out of the loop, things can break – the whole page, even.
As for where to find specific functions, like you mentioned, the simplest way to do this is just to go right into the code itself and look for where the function is defined.
Any function that begins with tribe_events_ is a function from The Events Calendar itself, and can be found within those files. But for functions like the_content(), or any function prefaced with wp_, these are WordPress “core” functions and are defined within the WordPress installation files directly.
Your best option in either case is to search for the word “function” and then the name of the function – this will lead to where the function is defined so you can see how the function works.
For example, if you want to find where the_content() is defined, head to your WordPress installation and search for “function the_content”. This will lead you to line 220 of /wp-includes/post-template.php, where the function is defined and you can read it in entirety.
I hope this is helpful! Let us know if so, or if you were asking for something different than what I elaborated upon here.
Thank you!
GeorgeMay 19, 2015 at 10:15 am #963640Stuart
ParticipantThis reply is private.
May 19, 2015 at 3:02 pm #963729George
ParticipantHey Stu,
There are PHP-specific things like var_dump() and print_r() that you can use within functions to dump variable information, and a whole plethora of debugging tools out there like xDebug and such, though these are things that aren’t specific to The Events Calendar.
I hope you investigate some of these options and find one that works well for you!
Cheers!
GeorgeJuly 7, 2015 at 6:32 am #984168Support 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 ‘Make additional fields appear in another location’ is closed to new replies.
