Question on attaching Venue meta data to standard posts.

Home Forums Calendar Products Events Calendar PRO Question on attaching Venue meta data to standard posts.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #16777
    Gaelan
    Member

    Hi 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!

    #16791
    Rob
    Member

    Hey 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.

    #16807
    Jonah
    Participant

    Hi 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?

    #16815
    Gaelan
    Member

    As 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!

    #16850
    Jonah
    Participant

    Hey 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?

    #16883
    Gaelan
    Member

    Thanks 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!

    #16898
    Jonah
    Participant

    Sounds good Gaelan!

    #976354
    Support Droid
    Keymaster

    This 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.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Question on attaching Venue meta data to standard posts.’ is closed to new replies.