Neasa Ronayne

Forum Replies Created

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • in reply to: Event Map not working when logged out #968430
    Neasa Ronayne
    Participant

    Hi Brian,

    Thanks for the link for comparing text, I used it on the page and the differences are nothing regarding the events calendar plugin. Thanks so much for your help. I’ll keep trucking away and maybe I will solve it.

    I will let you know if I do so you can store it for future use, if anyone wants to do something similar.

    in reply to: Event Map not working when logged out #967233
    Neasa Ronayne
    Participant

    Hi Brian,

    Thanks for the quick response. I added that to the top of the file which didn’t work and the top of the function which didn’t work, I got this error:

    Uncaught Type Error: debug.timeEnd is not function
    http://galway2020.ie/wp-content/themes/galway/tribe-events/tribe-events-ajax-mapsBlue.js
    Line 704

    I then tried commenting out the two lines that contain debug, line 704 and 709, this gave no errors but the map still did not work.
    I understand this is customization, but any help would be much appreciated.

    Here is the link to where I am testing the site: http://build.unthink.ie/galway/
    Any other ideas why it might only work when a user is logged in?

    Thanks so much for the help I appreciate it.

    in reply to: Event end date and start date the same #958829
    Neasa Ronayne
    Participant

    Hi Zach,
    Cheers for the reply, yeah I was thinking by reordering the data that shouldn’t impact on the data itself. When I change the meta_key to ‘_EventStartDate’ both start and end date appear as they should. I tried the tribe_get_events which unfortunately had the same results.

    What I have done is reorder posts by end date but this has caused the dates to become the same.
    Here is the full snippet:

    <?php
    	$args = array(
    		'meta_key'=> '_EventEndDate',
    		'meta_type'=>'DATE',
    		'orderby'=>'meta_value_num',
    		'post_type'=>'tribe_events',
    		'eventDisplay'=>'upcoming',
    		'showposts' => '-1'
    		);
    $the_query = new WP_Query( $args );
    
    while ($the_query->have_posts()) : $the_query->the_post(); ?>
    
    /////The posts content
    
    <?php endwhile;  wp_reset_query(); ?>

    Here is the dump of a single post:

    object(WP_Post)#433 (26) {
      ["ID"]=>
      int(4567)
      ["post_author"]=>
      string(1) "1"
      ["post_date"]=>
      string(19) "2015-02-09 11:58:36"
      ["post_date_gmt"]=>
      string(19) "2015-02-09 11:58:36"
      ["post_content"]=>
      string(872) "Sacred Space exhibition and accompanying book launch."
      ["post_title"]=>
      string(12) "Sacred Space"
      ["post_excerpt"]=>
      string(0) ""
      ["post_status"]=>
      string(7) "publish"
      ["comment_status"]=>
      string(6) "closed"
      ["ping_status"]=>
      string(6) "closed"
      ["post_password"]=>
      string(0) ""
      ["post_name"]=>
      string(12) "sacred-space"
      ["to_ping"]=>
      string(0) ""
      ["pinged"]=>
      string(0) ""
      ["post_modified"]=>
      string(19) "2015-02-19 12:26:31"
      ["post_modified_gmt"]=>
      string(19) "2015-02-19 12:26:31"
      ["post_content_filtered"]=>
      string(0) ""
      ["post_parent"]=>
      int(0)
      ["guid"]=>
      string(62) "http://www.pivotdublin.com/?post_type=tribe_events&p=4567"
      ["menu_order"]=>
      int(55)
      ["post_type"]=>
      string(12) "tribe_events"
      ["post_mime_type"]=>
      string(0) ""
      ["comment_count"]=>
      string(1) "0"
      ["filter"]=>
      string(3) "raw"
      ["EventStartDate"]=>
      string(19) "2015-05-01 23:59:59"
      ["EventEndDate"]=>
      string(19) "2015-05-01 23:59:59"
    }

    What it should look like:

    object(WP_Post)#430 (26) {
      ["ID"]=>
      int(4567)
      ["post_author"]=>
      string(1) "1"
      ["post_date"]=>
      string(19) "2015-02-09 11:58:36"
      ["post_date_gmt"]=>
      string(19) "2015-02-09 11:58:36"
      ["post_content"]=>
      string(872) "Sacred Space exhibition and accompanying book launch."
      ["post_title"]=>
      string(12) "Sacred Space"
      ["post_excerpt"]=>
      string(0) ""
      ["post_status"]=>
      string(7) "publish"
      ["comment_status"]=>
      string(6) "closed"
      ["ping_status"]=>
      string(6) "closed"
      ["post_password"]=>
      string(0) ""
      ["post_name"]=>
      string(12) "sacred-space"
      ["to_ping"]=>
      string(0) ""
      ["pinged"]=>
      string(0) ""
      ["post_modified"]=>
      string(19) "2015-02-19 12:26:31"
      ["post_modified_gmt"]=>
      string(19) "2015-02-19 12:26:31"
      ["post_content_filtered"]=>
      string(0) ""
      ["post_parent"]=>
      int(0)
      ["guid"]=>
      string(62) "http://www.pivotdublin.com/?post_type=tribe_events&p=4567"
      ["menu_order"]=>
      int(55)
      ["post_type"]=>
      string(12) "tribe_events"
      ["post_mime_type"]=>
      string(0) ""
      ["comment_count"]=>
      string(1) "0"
      ["filter"]=>
      string(3) "raw"
      ["EventStartDate"]=>
      string(19) "2015-02-12 00:00:00"
      ["EventEndDate"]=>
      string(19) "2015-05-01 23:59:59"
    }

    Any ideas Zach? Have you ever ordered by end date?

    Cheers

    in reply to: Order by End Date #957624
    Neasa Ronayne
    Participant

    Hi Geeorge/All,

    I managed to the re-ordering of events by creating a querying on a page rather than using the pre_get_posts in the functions.php

    This solution is adequate for me but may not be for everyone, here is my code if you want to save/pass along:

    $args = array(
    		'meta_key'=> '_EventEndDate',
    		'meta_type'=>'DATE',
    		'orderby'=>'meta_value_num',
    		'post_type'=>'tribe_events'
    		);
    	$the_query = new WP_Query( $args );
    	while ($the_query->have_posts()) : $the_query->the_post();
    endwhile; wp_reset_query();

    Just add this to any php file you want the events to appear. An error with this script is the start and end date appear the same.
    Good Luck.

    in reply to: Order by End Date #957276
    Neasa Ronayne
    Participant

    PS
    Sorry I didn’t answer your question, if I change the meta_key to start date the events are ordered 100% fine.

    in reply to: Order by End Date #957269
    Neasa Ronayne
    Participant

    Great, Thanks George. I will try those and get back to you whether it works or not.

    Thanks

    in reply to: Order events by End Date #956958
    Neasa Ronayne
    Participant

    Hi Brian,

    Thanks for the quick response. No worries I understand any help would be much appreciated.

    As I previously stated I have used both those. They seemed to order the events 1,12,3,9 rather than 1,3,9,12. So I tried meta_value_num to solve this issue but it remains the same.
    As a test I tried these to order the events by title and it worked fine, the issue seems to be that I am dealing with numbers.

    Cheers

    in reply to: Add event categories (as colours) to the calendar widget #912334
    Neasa Ronayne
    Participant

    Sorry some more details which might explain this better. see current html output:
    (example from 4th December) there are 2 events added to that date but looking at the class, only the 1 category is output (tribe-events-category-enfants), when I’m hoping to see 2 (tribe-events-category-arts) or more..
    <td class=”circle hentry vevent tribe-events-category-enfants post-130 tribe_events type-tribe_events status-publish hentry”>
    <div id=”daynum-4″>
    4
    </div>
    </td>

    This would be a great feature to have i reckon. look forward to your response!

    in reply to: Calendar Pro mini calendar widget #911769
    Neasa Ronayne
    Participant

    This is excellent Brian, that worked perfectly for me. Really appreciate it!

    in reply to: Calendar Pro mini calendar widget #909444
    Neasa Ronayne
    Participant

    Hi Brian,

    Thanks for the swift reply. Thats unfortunate that its not something that can be switched on/off.
    If i was to write a java function, could you point me in the direction of where and what id need to target in order for the function to work?

    I will also add this request to the feature ideas.

    thanks a lot

    Philip

Viewing 10 posts - 1 through 10 (of 10 total)