WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
Regionalize Events (2 posts)

  1. deltatango
    Member
    Posted 1 year ago #

    Hello, I am traying to make the calendar only display events for a particular region, which is set in the session variable.

    I created a template page which uses the calendar plug in.

    I put this code at the top of the template page:

    $region = $_SESSION['region'];
    
    			global $wpdb;
    			global $query_string;
    			$term=get_term($region,'regions');
    			$slug=$term->slug;
    			$query_string.="&regions=$slug";
    			query_posts($query_string);

    The above works, but when I add the query_posts function (last line of code above), it affects the output and shows the_content as plain text list of events instead of the calendar. In other words, the output is overwritten by the query_posts plug in.

    Any idea what I am doing wrong?

    http://wordpress.org/extend/plugins/the-events-calendar/

  2. jonahcoyote
    Member
    Posted 1 year ago #

    Hi deltatango,

    As mentioned in our sticky thread (http://wordpress.org/support/topic/welcome-the-events-calendar-users-read-this-first), we unfortunately are unable to help with with customization, styling or integration issues not caused by bugs with The Events Calendar. You have a few options:

    1. Check out our extensive support resources and try to figure it out on your own: https://tri.be/support/ & http://tri.be/support/forums
    2. Hire a developer to assist you. We've got a list of freelancers who know our code and who we can vouch for. Email us (pro at tri.be) and we'll pass that list your way.
    3. Purchase a Pro license to get more support: http://tri.be/shop/wordpress-events-calendar-pro/. As mentioned in the sticky thread, we can provide both a deeper and more frequent level of support for PRO users.

    I hope that helps and good luck!

    Cheers,
    - Jonah

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.