Jonah

Forum Replies Created

Viewing 15 posts - 1,981 through 1,995 (of 4,001 total)
  • Author
    Posts
  • in reply to: Widget – Separate Date and Time #27081
    Jonah
    Participant

    Hi Chad,

    Which widget?

    – Jonah

    in reply to: Table.php limit display of calendar to specific categories #27080
    Jonah
    Participant

    Hi Sandro,

    Yep, you can certainly do this. Basically in table.php the query for the calendar uses tribe_get_events(). I’m not sure how you’re displaying table.php on the home page (PHP include?) but you could add a condition before the first one on line 14 of table.php for:

    if(is_front_page()) {
    $eventPosts = tribe_get_events( array( 'eventCat' => $myCity, 'time_order' => 'ASC', 'eventDisplay'=>'month' ) );
    }

    ‘eventCat’ expects an ID so you’ll want to get the ID of the event category using something like what’s already there for event categories:

    $cat = get_term_by( 'slug', $myCity, $tribe_ecp->get_event_taxonomy() );
    $myCity = (int) $cat->term_id;

    Does that help?

    – Jonah

    in reply to: Fatal Error: Call to member function… #27066
    Jonah
    Participant

    Hi Kevin,

    It sounds like you’ve got an old template override from a previous version in the ‘events’ folder of your theme. Compare D:\Hosting\3136778\html\wordpress\wp-content\themes\cubscouts\events\gridview.php with /wp-content/plugins/the-events-calendar/views/gridview.php and try to merge the files as much as possible while keeping your modifications in place.

    I hope that helps!

    – Jonah

    in reply to: How to change font size??? #27065
    Jonah
    Participant

    Hi Marcin,

    You can target any of the elements in the tooltip here: http://cl.ly/image/2o2o172F2f0L

    Which specific items do you need to target?

    – Jonah

    in reply to: CSS validation failed–no attribute zoom #27015
    Jonah
    Participant

    Hi Cynthia,

    We could very well do this better and I will report this to the developers offering up yours as a possible solution. In the interim you can easily override the core events.css file by making a copy and placing in an ‘events’ folder in your active theme and making any changes you want. The plugin will then use your CSS instead.

    I hope that helps and thanks for the report!

    – Jonah

    in reply to: Create category archive list on one page #27014
    Jonah
    Participant

    Hi Star,

    This is a more complex customization question that I can’t spend the time on answering here but I can hopefully point you in the right direction. You would want to edit list.php because this ultimately controls the display of the list of events. So, first make a copy and place in an ‘events’ folder in your active theme. Now you make any changes to it and preserve the core file.

    Basically what you’ll need to do then is check with a WordPress conditional tag whether or not you are viewing an event category and if you are, display details about that category. Event categories are technically taxonomies so the conditional tag you want to use is is_tax() (http://codex.wordpress.org/Function_Reference/is_tax) and then within that conditional tag you would place tags calling the category (taxonomy) description and then are you ok with the default upcoming/previous events display? If not, you’d need to replace the default list with some custom queries using tribe_get_events() or WP_Query

    Here is a brief, stripped down example of the code you’d use to display the category description in list.php: https://www.sourcedrop.net/Iu45e9f8ce42d – place that wherever you’d like the description to display.

    Does that help?

    – Jonah

    in reply to: Custom Fields with tribe_get_events #27003
    Jonah
    Participant

    Hi Kyle,

    Why wouldn’t you just use the author parameter in the query and pass the current user ID into that instead of messing with custom fields?

    global $post, $user;
    get_currentuserinfo();
    $currentid = $current_user->ID;
    $all_events = tribe_get_events(
    array(
    ‘eventDisplay’=>’upcoming’,
    ‘author’=>$currentid,
    ));
    foreach($all_events as $post) {
    stuff..
    }

    Seems like the custom field route is an extra unnecessary step. Does that work?

    – Jonah

    in reply to: include events on front page #26985
    Jonah
    Participant

    Hi Rob,

    Two things, one, it looks like you may have some syntax issues with your code using apostrophes instead of single quotes so make sure it’s not a problem with your code… Two, in this chunk of code:

    add_action( ‘pre_get_posts’, ‘be_change_event_posts_per_page’ );
    function be_change_event_posts_per_page( $query ) {
    if( is_home() && $query->is_main_query() ) {
    $query->set( ‘cat’, ’15′ );
    $query->set( ‘post_type’, array( ‘post’, ‘Events’) );
    }
    }

    You need to use tribe_events instead of “Events” as the post type, so like so (and I’m also correcting the apostrophes here):

    add_action( 'pre_get_posts', 'be_change_event_posts_per_page' );
    function be_change_event_posts_per_page( $query ) {
    if( is_home() && $query->is_main_query() ) {
    $query->set( 'cat', '15' );
    $query->set( 'post_type', array( 'post', 'tribe_events') );
    }
    }

    …see if that helps.

    – Jonah

    in reply to: Embed Google maps #26939
    Jonah
    Participant

    Sounds good Mathew, let us know if there’s anything else we can help with!

    – Jonah

    in reply to: Tooltip start time – all displaying same time #26580
    Jonah
    Participant

    Glad to hear that worked Kelly. I’m going to close this thread out but feel free to bring up any other questions you have in another thread.

    Thanks,
    Jonah

    in reply to: Tooltip start time – all displaying same time #26577
    Jonah
    Participant

    Hi Kelly,

    I see what’s going on. Unfortunately we don’t have support for passing the post ID in tribe_get_start_date() for recurring events. I’ve just created a feature request to get this added but no guarantees when it will be. As an alternative you should be able to pull the start date/time as pure meta and format it accordingly like so:

    $return .= ''. date('g:ia', strtotime(tribe_get_event_meta( $post->ID, '_EventStartDate', true ))) . '';

    If you want to change the date format, add the actual date, etc. just take a look at what you need in the PHP date reference: http://php.net/manual/en/function.date.php and modify the ‘g:ia’ part in the code.

    I hope that helps!

    – Jonah

    in reply to: unwanted recurring event #26576
    Jonah
    Participant

    Hi Jason,

    I just remembered that this is a known bug (and could be related to a plugin conflict or not) that we have slated to be fixed in 2.0.10 or 3.0. Until then there’s nothing else that can be done unless you do notice it’s a plugin conflict and can deactivate that plugin or find an alternative. Sorry I can’t offer up more here.

    – Jonah

    in reply to: Tooltip start time – all displaying same time #26574
    Jonah
    Participant

    Hi Kelly,

    You need to pass in the ID of each event for the start date function like so:

    tribe_get_start_date( $post->ID, true, ' ' )

    That should do it. Let me know if you need anything else.

    – Jonah

    in reply to: unwanted recurring event #26572
    Jonah
    Participant

    Hi Jason,

    Have you tried deactivating all other plugins to see if maybe another plugin is causing this issue? Or, have you tried deleting and recreating the problem event?

    – Jonah

    in reply to: Embed Google maps #26565
    Jonah
    Participant

    Hi Mathew,

    Does the map show up when you input the city/state for the venue in english? It looks like Google Maps has issues displaying this address too: http://goo.gl/maps/EMXYJ

    – Jonah

Viewing 15 posts - 1,981 through 1,995 (of 4,001 total)