Home › Forums › Calendar Products › Events Calendar PRO › Question on attaching Venue meta data to standard posts.
- This topic has 7 replies, 4 voices, and was last updated 10 years, 10 months ago by
Support Droid.
-
AuthorPosts
-
March 15, 2012 at 1:38 am #16777
Gaelan
MemberHi there, I am currently developing a site and couldn’t find my answer in the forum, and was hoping you could point me in the right direction.
I am wanting to attach a saved ‘Venue’ (and all the corresponding venue meta data) to a standard post.
Ideally, I want to simply copy what already exists when one creates a new ‘Event’ custom post type and has the choice to use a saved venue (this occurs when editing or adding a new event, in the main custom post meta box, under the title ‘Event Location Details’).
I have found your public function ‘displayEventVenueDropdown($postId)’ in file directory: ‘plugins\the-events-calender-pro\events-calender-pro.php’. I am thinking that perhaps I can include this in standard posts, but I worry that saving and accessing the venue data will fail.
Any help or direction you can give will be GREATLY appreciated! Thanks for your hard work!
March 15, 2012 at 9:10 am #16791Rob
MemberHey Gaelan. Thanks for the note here, and for your words on the plugin. Happy to help best I can. This is an interesting request and not one that as far as I can tell we’ve seen yet. Not sure how doable this is or how much customization would be required, but let me see if our dev Jonah can take a look and point you in the right direction when he hits the forums later this morning. Stay tuned.
March 15, 2012 at 10:14 am #16807Jonah
ParticipantHi Gaelan, this would be fairly complex and we cannot provide a solution for this. Can I ask why you want to be able to save venue data for standard posts when you could just use the events post type?
March 15, 2012 at 12:55 pm #16815Gaelan
MemberAs I understand it, your earlier versions of your plugin used standard post types as events, and stored the meta data alongside it. On the site I am working on, my standard posts have a robust series of functions and uses that go with them and, while separate, I would like to link certain posts to certain venues if they are related.
What I am searching for is a way to link a venue to a post (it could be as simple as listing venues by name and attaching the venue id to the post as meta data).
I was hoping it would be as easy as duplicating your call to:
add_meta_box( ‘Venue Details’, __(‘Venue Information’, ‘tribe-events-calendar’), array( $this, ‘VenueMetaBox’ ), self::VENUE_POST_TYPE, ‘normal’, ‘high’ )
and setting the post type to normal. (This was found in public function ‘addEventBox()’ in ‘plugins\the-events-calender\lib\the-events-calender.class.php’)
Sorry for the complex question! I will try to implement my own changes to it, but would love any other insights you might have into it. Thanks again!
March 16, 2012 at 10:25 am #16850Jonah
ParticipantHey Gaelan, have you looked at something like http://wordpress.org/extend/plugins/advanced-custom-fields/ or http://wordpress.org/extend/plugins/posts-to-posts/ where you can setup relationships between content like that?
March 17, 2012 at 12:45 am #16883Gaelan
MemberThanks for the followup! Yes I do love the advanced custom fields plugin, which has helped me out before, and will definitely keep that in mind. I will try for a little more seamless technique first, and see if I can’t figure it out first. Thanks for your help!
March 18, 2012 at 9:45 am #16898Jonah
ParticipantSounds good Gaelan!
July 6, 2015 at 5:00 pm #976354Support 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 ‘Question on attaching Venue meta data to standard posts.’ is closed to new replies.
