Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would be great to support BB Field Connections #20

Open
Skemp45 opened this issue Aug 22, 2018 · 3 comments
Open

Would be great to support BB Field Connections #20

Skemp45 opened this issue Aug 22, 2018 · 3 comments
Assignees

Comments

@Skemp45
Copy link
Contributor

Skemp45 commented Aug 22, 2018

Beaver Builder offers the ability to use something called a field connection to pull in a post types specific content.
https://kb.wpbeaverbuilder.com/category/544-field-connections

It would be great if there were field connectors so that I can make an single event details page that works for all events.

Currently when adding an event ticket module, you have to select what event you want it for, instead it should pull based off the post itself.

@Skemp45
Copy link
Contributor Author

Skemp45 commented Aug 22, 2018

screen shot 2018-08-21 at 6 52 15 pm
screen shot 2018-08-21 at 6 52 31 pm
screen shot 2018-08-21 at 6 52 49 pm

@Skemp45
Copy link
Contributor Author

Skemp45 commented Aug 22, 2018

I am currently using a small hack as I needed this to work right away, here is my functions.php for my ticket module:

function espresso_module_event_titles() {

    $options = array( '' => __('None', 'event_espresso') );
    if ( class_exists( 'EE_Registry' ) ) {
        $events = EEM_Event::instance()->get_active_and_upcoming_events(array());
        if ( ! empty( $events )) {
            foreach ( $events as $event ) {
                //echo $event->ID();
                $options[$event->ID()] = $event->name();
            }
            $post = get_post();
            $options[$post->ID] = $post->post_name;
        }
    }

    return $options;
}

@Skemp45
Copy link
Contributor Author

Skemp45 commented Aug 22, 2018

This makes the post itself show up in the dropdown, in my case it is showing my themer page but therefor when im on an actual event it is pulling in the ticket information for the actual event.
screen shot 2018-08-21 at 7 23 49 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants