Events Calendar PRO: bug when using categories and question to dev team

Home Forums Calendar Products Events Calendar PRO Events Calendar PRO: bug when using categories and question to dev team

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #21520
    Sandro
    Participant

    Thank you Jonah, I appreciate you taking time to help me out. But I don’t get it. Let me tell you what I did so far, so maybe it will be easier for both of us when we know what has been done and what works and doesn’t.

    This is more complete description, one I gave you before was simpler version.

    So my wordpress has several homepages = cities.

    City: Gudauri
    Homepage: http://develop.primediart.com/project/Sandroz/gudauri/
    Gudauri Events: http://develop.primediart.com/project/Sandroz/events/category/gudauri-events/

    City: Batumi
    Homepage: http://develop.primediart.com/project/Sandroz/batumi/
    Batumi Events: http://develop.primediart.com/project/Sandroz/events/category/batumi-events/

    I wanted to include city specific calendars on their respective homepages.
    So I did this on frontpages:

    And in table.php in line no. 24 i added:
    if(isset($myCity)){ //if its called from front page,in front page $mycity is set
    $eventCat=get_category_id($myCity);
    $eventPosts = tribe_get_events( array( ‘eventCat’ => $eventCat, ‘time_order’ => ‘ASC’, ‘eventDisplay’=>’month’ ) );
    }
    // in an events cat
    elseif ( is_tax( $tribe_ecp->get_event_taxonomy() ) ) {
    $cat = get_term_by( ‘slug’, get_query_var(‘term’), $tribe_ecp->get_event_taxonomy() );
    $eventCat = (int) $cat->term_id;
    $eventPosts = tribe_get_events( array( ‘eventCat’ => $eventCat, ‘time_order’ => ‘ASC’, ‘eventDisplay’=>’month’ ) );
    }
    // not in a cat
    else {
    $eventPosts = tribe_get_events(array( ‘eventDisplay’=>’month’ ));
    }

    THe first if{} condition so that if the $mycity variable is set in front page then it will fetch the event of That particular city category as it is being called in front page, otherwise the below usual loop will work. Like wise here among these lines i tried with sevral codes to put the category like $mycity.”-events” bcause the events categories are like this “gudauri-events” and normal front page categories are like this “gudauri”.

    And for doing the same for the events i did this which is working fine:
    $args = array(
    ‘tax_query’ => array(
    array(
    ‘taxonomy’ => ‘tribe_events_cat’,
    ‘field’ => ‘slug’,
    ‘terms’ => $terms_category//in home page its assigned to mycity_event name
    )
    ),
    ‘posts_per_page’ => 30,’order’=>’ASC’,’orderby’=>’modified’,’post_type’=>’tribe_events’,’eventDisplay’=>’upcoming’
    );
    //$postslist = query_posts(‘order=ASC&orderby=modified&posts_per_page=4&post_type=tribe_events&eventDisplay=upcoming’);
    $postslist = query_posts($args);?>

    I’m attaching modified files so you can take a better look.
    table.php -> http://pastebin.com/Ci2id4qE
    calendar-frontpage.php -> http://pastebin.com/1AMLFGRd

    Hope this is much clearer explanation of what I’m doing and direction I’m going. Any thoughts on this?

    #21528
    Joyce Grace
    Member

    Hello Sandro,

    While I personally don’t have the technical ability to help you with all of your questions, I will get us started by leading you to our Themer’s Guide: https://theeventscalendar.com/themers-guide-to-the-events-calendar/

    You mentioned you can’t update – this is going to pose problems for you in the future. Could you please try to set up your files in your theme folder, to protect it from future updates?

    There are videos on how to do this with the Genesis theme framework, although the principle is the same with other themes: https://theeventscalendar.com/tutorial-integrating-the-events-calendar-w-genesis/

    The reason you will want to do this is that we can really only support the plugin when we know it is at its latest version, with the latest version of WordPress, and working well on the Twenty Eleven theme.

    So while we can certainly try to help you out with what you’re asking now, in the future you will reach a lot of road blocks.

    If we can start with that, in the mean time I can get someone on board to help you with the other parts of your questions.

    For issue #1, you would need a way to separate the type of event categories the grid views are pulling.

    Can you please link to your site so we can better understand what is happening with it?

    Thanks!

    #21534
    Sandro
    Participant

    It is weird, I cannot see my comment here.
    I’m trying to re-post it:

    Hi Joyce Grace.
    Thank you for quick reply 🙂 wow, impressive…

    Yes, I agree about upgrade-ability. This is on my list of things to-do. But you know deadlines are stringent, and at this point in time I just want to lunch the website fast and clean-up in following versions. Thanks for the link, I’m reading it now.

    Issue#1: date hyperlink bug –
    develop.primediart.com/project/Sandroz/events/category/tbilisi-events/ (29,30 dates should not be hyperlinked)
    develop.primediart.com/project/Sandroz/events/category/gudauri-events/ (25 should not be hyperlinked)

    Issue#2: Homepage category variation, grid view problem –
    http://develop.primediart.com/project/Sandroz/gudauri/ (grid view displays global events from all categories)
    http://develop.primediart.com/project/Sandroz/gudauri/?show=list (list view correctly displays only 2 events from correct category)

    Thanks!

    #21540
    Joyce Grace
    Member

    Hello Sandro, what version of WordPress, our plugin and our add-ons are you using right now? Are they all at their latest versions?

    #21541
    Sandro
    Participant

    WordPress 3.3.2
    Events Calendar Pro Version 2.0.6

    As you understand I’m in the middle of development, I cannot keep up to date with everything that comes out.

    #21569
    Joyce Grace
    Member

    Hello Sandro,

    The linking problem with the different events categories is a bug and we’ve logged it to be fixed as soon as we can, though we can’t guarantee any dates.

    If you are not up to our latest versions, and are not willing to do a simple copy and paste of your files to your theme folder to be able to do an update, there is not much we can do to help you, I’m sorry.

    The code is going to be different, the lines will be different, etc. and it is really hard for us to help you if you can’t help us with this first step.

    #21681
    Joyce Grace
    Member

    Hi Sandro, I see you tried to leave a message that is not showing up here:

    Hi Grace, I updated events calendar as requested. And bug with different category date hyperlinks disappeared! Awesome! Now about homepage, where I’m trying to load different category contents in grid view. Can you help me with that now? Issue#2: Homepage category variation, grid view problem – develop.primediart.com/project/Sandroz/gudauri/ (grid view displays global events from all categories) develop.primediart.com/project/Sandroz/gudauri/?show=list (list view correctly displays only 2 events from correct category)

    Thank you for updating the calendar. I’m glad that solved your first problem.

    For Issue #2, this is really a customization request, which we don’t normally support here on the forums. However, I am going to see if there is someone who can have a look and recommend a quick fix for you. No guarantees though 🙁

    #21699
    Sandro
    Participant

    🙂 sunday replies? Thanks allot! Yes there is something wrong with forum, my posts don’t show up 🙁 hopefully this one gets through.

    I know my request is outside support, but I just need a quick pointer as where my logic is breaking down…

    I simply don’t understand why list view works perfectly and grid view doesn’t. Someone with close knowledge of events calendar architecture can diagnose it in few minutes, while it is taking me a week now 🙁 So I will really really appreciate your help.

    #21706
    Jonah
    Participant

    Hi Sandro,

    I’m not sure if I understand your new issue with the grid view on your home? page. Can you please provide some more detail on this?

    Thanks,
    Jonah

    #21726
    Sandro
    Participant

    Again my posts are not visible 🙁

    #21727
    Sandro
    Participant

    Joyce, do you see what I said before this and last post? Can you please repost it? thanks!

    #21757
    Jonah
    Participant

    Hi Sandro,

    Joyce is having me handle this now. I see posts in a calendar on this page: http://develop.primediart.com/project/Sandroz/gudauri/ – where is the page where posts are not showing?

    Thanks,
    – Jonah

    #21816
    Sandro
    Participant

    I’m saying my posts here on this forum are not visible, I write and nothing shows up 🙁

    #21820
    Sandro
    Participant

    Something is wrong with this forum, my posts simply don’t show up.

    #21824
    Sandro
    Participant

    Jonah West Hi, I’m sorry but whenever I write more than 1 line of text my posts don’t show up. Must be something wrong with this forum. So to pass my reply I edited original post. Please scroll up and read my original post it is updated for you. thanks!

Viewing 15 posts - 1 through 15 (of 20 total)
  • The topic ‘Events Calendar PRO: bug when using categories and question to dev team’ is closed to new replies.