php - Eventbrite API not returning Events -



php - Eventbrite API not returning Events -

so site working on client, http://atasteofartistry.com, needs have eventbrite integration. wordpress install running genesis theme.

right now, in functions.php, have this:

//* eventbrite require 'eventbrite.php'; $eb_client = new eventbrite( array('app_key'=>'(redacted)', 'user_key'=>'(redacted)')); $arr = array('user'=>'atasteofartistry@gmail.com', 'event_statuses'=>'live,started' ); e$events = $eb_client->user_list_events($arr);

and have phone call in widget listed this:

<h1>my event list:</h1> <?= eventbrite::eventlist( $events, 'eventlistrow'); ?> </div>

on site, not getting events. eventbrite.php api client initializing, because "no events" message, cannot pass through it.

i've been staring @ 8 hours , need help. help!

i'm using eventbrite php library github.

https://github.com/ryanjarvinen/eventbrite.php

how prepare great, can't figure out how troubleshoot it.

many thanks,

joe

functions.php

<?php //* start engine include_once( get_template_directory() . '/lib/init.php' ); //* setup theme include_once( get_stylesheet_directory() . '/lib/theme-defaults.php' ); //* eventbrite require 'eventbrite.php'; add_action( 'genesis_before', 'eventbrite_event_list'); function eventbrite_event_list() { $eb_client = new eventbrite( array('app_key'=>'ecoc6tzs3jjvxlj2mx', 'user_key'=>'1409014384112928178221')); $arr = array('user'=>'atasteofartistry@gmail.com', 'event_statuses'=>'live,started' ); seek { $events = $eb_client->user_list_events(); } grab ( exception $e ) { // sure plan potential error cases // application can respond appropriately //var_dump($e); $events = array(); } } //* set localization (do not remove) load_child_theme_textdomain( 'daily-dish', apply_filters( 'child_theme_textdomain', get_stylesheet_directory() . '/languages', 'daily-dish' ) ); //* kid theme (do not remove) define( 'child_theme_name', __( 'daily dish pro theme', 'daily-dish' ) ); define( 'child_theme_url', 'http://my.studiopress.com/themes/daily-dish/' ); define( 'child_theme_version', '1.0' ); //* enqueue scripts , styles add_action( 'wp_enqueue_scripts', 'daily_dish_enqueue_scripts_styles' ); function daily_dish_enqueue_scripts_styles() { wp_enqueue_script( 'daily-dish-responsive-menu', get_bloginfo( 'stylesheet_directory' ) . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0' ); wp_enqueue_style( 'dashicons' ); wp_enqueue_style( 'daily-dish-google-fonts', '//fonts.googleapis.com/css?family=lato:400,700,900|playfair+display:400|tangerine:400,700', array(), child_theme_version ); } add_filter( 'genesis_seo_title', 'custom_genesis_seo_title', 10, 1 ); /** * replace site title text entered in settings > reading custom html. * @author sridhar katakam * @link http://sridharkatakam.com/replace-site-title-text-custom-html-genesis/ * * @param string original title text * @return string modified title html */ function custom_genesis_seo_title( $title ) { $title = '<h1 itemprop="headline" class="site-title"><a title="homepage" href="' . get_bloginfo('url') . '">a taste of <span class="artistry">artistry</span></a></h1>'; homecoming $title; } //* add together html5 markup construction add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); //* add together viewport meta tag mobile browsers add_theme_support( 'genesis-responsive-viewport' ); //* add together back upwards custom background add_theme_support( 'custom-background', array( 'default-attachment' => 'fixed', 'default-color' => 'ffffff', 'default-image' => get_stylesheet_directory_uri() . '/images/bg.png', 'default-repeat' => 'repeat', 'default-position-x' => 'left', ) ); //* add together new image sizes add_image_size( 'daily-dish-featured', 720, 470, true ); add_image_size( 'daily-dish-archive', 340, 200, true ); add_image_size( 'daily-dish-sidebar', 100, 100, true ); //* add together back upwards custom header add_theme_support( 'custom-header', array( 'header-selector' => '.site-title a', 'header-text' => false, 'height' => 80, 'width' => 400, ) ); /** enable shortcodes used in widgets */ add_filter( 'widget_text', 'shortcode_unautop'); add_filter( 'widget_text', 'do_shortcode'); //* unregister header right widget area unregister_sidebar( 'header-right' ); //* remove navigation meta box add_action( 'genesis_theme_settings_metaboxes', 'daily_dish_remove_genesis_metaboxes' ); function daily_dish_remove_genesis_metaboxes( $_genesis_theme_settings_pagehook ) { remove_meta_box( 'genesis-theme-settings-nav', $_genesis_theme_settings_pagehook, 'main' ); } //* remove output of primary navigation right extras remove_filter( 'genesis_nav_items', 'genesis_nav_right', 10, 2 ); remove_filter( 'wp_nav_menu_items', 'genesis_nav_right', 10, 2 ); //* reposition secondary navigation menu remove_action( 'genesis_after_header', 'genesis_do_subnav' ); add_action( 'genesis_before_header', 'genesis_do_subnav' ); //* hook before header widget area above header add_action( 'genesis_before', 'daily_dish_before_header' ); function daily_dish_before_header() { genesis_widget_area( 'before-header', array( 'before' => '<div class="before-header" class="widget-area"><div class="wrap">', 'after' => '</div></div>', ) ); } add_theme_support( 'genesis-structural-wraps', array( 'header', 'nav', 'subnav', 'site-inner', 'footer-widgets', 'footer' ) ); //* customize entry meta in entry header add_filter( 'genesis_post_info', 'daily_dish_single_post_info_filter' ); function daily_dish_single_post_info_filter( $post_info ) { $post_info = '[post_date] [post_author_posts_link] [post_comments] [post_edit]'; homecoming $post_info; } //* customize entry meta in entry footer add_filter( 'genesis_post_meta', 'daily_dish_post_meta_filter' ); function daily_dish_post_meta_filter($post_meta) { $post_meta = '[post_categories before=""] [post_tags before=""]'; homecoming $post_meta; } //* remove comment form allowed tags add_filter( 'comment_form_defaults', 'daily_dish_remove_comment_form_allowed_tags' ); function daily_dish_remove_comment_form_allowed_tags( $defaults ) { $defaults['comment_notes_after'] = ''; homecoming $defaults; } //* walled garden // function walled_garden() // { // if( ! is_user_logged_in() ) // wp_redirect( '/wp-login.php' ); // } // add_action( 'get_header', 'walled_garden' ); //* add together images site header add_action( 'genesis_site_title','add_header_images',8); function add_header_images() { ?> <span><img src="../wp-content/themes/daily-dish-pro/images/wine-glass.png" class="header-glass" /></span> <span><img src="../wp-content/themes/daily-dish-pro/images/splatter.png" class="splatter" /></span> <?php } //* modify size of gravatar in author box add_filter( 'genesis_author_box_gravatar_size', 'daily_dish_author_box_gravatar' ); function daily_dish_author_box_gravatar( $size ) { homecoming 180; } //* modify size of gravatar in entry comments add_filter( 'genesis_comment_list_args', 'daily_dish_comments_gravatar' ); function daily_dish_comments_gravatar( $args ) { $args['avatar_size'] = 96; homecoming $args; } //* hook before footer widget area below footer widgets add_action( 'genesis_before_footer', 'daily_dish_before_footer_widgets', 5 ); function daily_dish_before_footer_widgets() { genesis_widget_area( 'before-footer-widgets', array( 'before' => '<div class="before-footer-widgets" class="widget-area"><div class="wrap">', 'after' => '</div></div>', ) ); } //* hook after footer widget area below footer add_action( 'genesis_after', 'daily_dish_after_footer' ); function daily_dish_after_footer() { genesis_widget_area( 'after-footer', array( 'before' => '<div class="after-footer" class="widget-area"><div class="wrap">', 'after' => '</div></div>', ) ); } //* add together back upwards 3-column footer widgets add_theme_support( 'genesis-footer-widgets', 3 ); //* add together back upwards after entry widget add_theme_support( 'genesis-after-entry-widget-area' ); //* relocate after entry widget remove_action( 'genesis_after_entry', 'genesis_after_entry_widget_area' ); add_action( 'genesis_after_entry', 'genesis_after_entry_widget_area', 5 ); //* register widget areas genesis_register_sidebar( array( 'id' => 'before-header', 'name' => __( 'before header', 'daily-dish' ), 'description' => __( 'this before header widget area.', 'daily-dish' ), ) ); genesis_register_sidebar( array( 'id' => 'home-top', 'name' => __( 'home - top', 'daily-dish' ), 'description' => __( 'this top section of homepage.', 'daily-dish' ), ) ); genesis_register_sidebar( array( 'id' => 'home-middle', 'name' => __( 'home - middle', 'daily-dish' ), 'description' => __( 'this middle section of homepage.', 'daily-dish' ), ) ); genesis_register_sidebar( array( 'id' => 'home-bottom', 'name' => __( 'home - bottom', 'daily-dish' ), 'description' => __( 'this bottom section of homepage.', 'daily-dish' ), ) ); genesis_register_sidebar( array( 'id' => 'before-footer-widgets', 'name' => __( 'before footer widgets', 'daily-dish' ), 'description' => __( 'this before footer widgets section.', 'daily-dish' ), ) ); genesis_register_sidebar( array( 'id' => 'after-footer', 'name' => __( 'after footer', 'daily-dish' ), 'description' => __( 'this after footer section.', 'daily-dish' ), ) );

php wordpress eventbrite genesis

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -