On a search query without results the Ajax calendar doesnt work. I have solved it this way /plugins/ajax-calendar (ajax-calendar.php):
function modify_calendar_query( $query ) {
if ( !empty( $this->category_ids ) ) {
global $wpdb;
$query = str_replace( ‘WHERE’, “LEFT JOIN {$wpdb->prefix}term_relationships ON {$wpdb->prefix}posts.ID = {$wpdb->prefix}term_relationships.object_id INNER JOIN {$wpdb->prefix}term_taxonomy ON ({$wpdb->prefix}term_relationships.term_taxonomy_id = {$wpdb->prefix}term_taxonomy.term_taxonomy_id AND {$wpdb->prefix}term_taxonomy.taxonomy=’category’) WHERE”, $query );
if ( strpos( $query, ‘ORDER’ ) !== false ){
$query = str_replace( “ORDER”, “AND {$wpdb->prefix}term_taxonomy.term_id IN (“.implode (‘,’, $this->category_ids ).’) ORDER’, $query );
}else{
$query .= “AND {$wpdb->prefix}term_taxonomy.term_id IN (“.implode (‘,’, $this->category_ids ).’)’;
$query = str_replace( “LIMIT 1″, ” “, $query );
}
}
return $query;
}
Hi!
To solve the message of deprecated / notice on wordpress versions “Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AJAX_Calendar_Widget has a deprecated constructor”
You need to change 2 lines in the plugin (ajax-calendar.php line 11) and put these:
function __construct() {
$widget_ops = array( ‘classname’ => ‘ajax_calendar_widget’, ‘description’ => __( ‘AJAX Powered Calendar’, ‘ajax-calendar’ ) );
$control_ops = array( ‘width’ => 300, ‘height’ => 300 );
parent::__construct( ‘ajax-calendar’, __( ‘AJAX Calendar’, ‘ajax-calendar’ ), $widget_ops, $control_ops );
add_action( ‘template_redirect’, array( &$this, ‘template_redirect’ ) );
}
Just a quick heads-up … I had decided to change my permalinks back to “Month and name” from “Post name” and noticed some error messages being generated from the WordPress update.php
file.
Checking against other active plugins appears to be narrowing this down to a conflict with the current version of W3 Total Cache.
I didn’t troubleshoot this much further as I have other options for the calendar, just thought you might want to look into this …
~Cais.
]]>Hello there,
I have the following problem: I have the AJAX Calendar installed in an events page here: https://www.delorsinstitut.de/wp/-/veranstaltungen/ – now if there is no current or future event the calendar does not show. Which is kind of logical. But the title of the widget “Kalendar” still shows up.
Is it possible to either remove the widget’s title as well or display a blank calendar of the current month without a post date highlight?
Any help with this is welcome!
Thank you, Arne
]]>When I pick for example a day from febuary 2011, it goes to archive febuary 2011 but the calendar shows febuary 2013. It seems it correctly gets the month, but occurs some problem with a year. How shall I repair it? ??
]]>I have tried every class and nothing is working!
What are the CSS tags to change the look of the Eventlist?
Specifically, font size, font family, color, and most importantly that left PADDING!
Great plugin, but the list looks terrible and is hard to read.
Thanks for the help!
]]>Is it possible to create an event with a start time and no end time?
]]>Installed and activated the plugin via the Plugins page. No plugin options were added to the dashboard (as shown in the video). A widget was added to the available widgets. The [calendar] shortcode is not recognized.
]]>Just installed the AJAX Calendar, I can add events in WordPress, but the event does not show up in the calendar after the page is published. Any tips?
]]>We installed Ajax Calendar and I can update events on every computer in the house except my laptop.
I have tried IE9, Firefox, and Chrome with no luck. Operating system is Windows 7, Laptop is a Toshiba Sattelite L875D-S7210.
Any help would be greatly appreciated.
]]>I was wondering if a class can be added to the TD depending on the category of that date’s post, so that I could apply different styles according to category.
Thanks!
Hello
I wonder How can I do to put the navigation links and months << >> next to the title of the calendar month. Getting something like << November >>.
And also How do I remove the name of the month, keeping only << and >>, and change the CSS to increase the font. Now is <<Nov and Dec>>. I wish has no name of the month in navigation.
Thank you
It seems like this has always been an issue in this plugin (forum thread from 3 years ago), but I’d love to find a fix for it…
The category ID only filters the category on the first month that appears when the page & widget load, after that navigating through months shows all posts.
I’m using this function to add the widget in my theme applying the category ID as the category of the first post on every page:
function custom_ajax_widget() {
global $wp_query;
$id = $wp_query->post->ID;
$cats = get_the_category($id);
$catID = $cats[0]->cat_ID;
$instance = array(
'title' => '',
'category_id' => $catID
);
$args = array(
'before_widget' => '<li class="widget ajax_calendar_widget">',
'after_widget' => '</li>',
'before_title' => '<h3>',
'after_title' => '</h3>'
);
the_widget('AJAX_Calendar_Widget',$instance,$args);
}
It shouldn’t make a difference to the behaviour of the widget, but might provide more flexibility in the solution to this problem, perhaps.
]]>Hello
On my site, https://sailingautisticseas.com/events-and-seminars/, everything worked perfectly until yesterday. It’s gone. I tried removing and adding plugins but still nothing.
Help? ??
]]>Hello,
I was wondering where in the CSS/PHP files is the attribute to adjust the width of each calendar date cell. I have decently large event names and they are gettign scrunched up in the calendar. I would like to make the width bigger so the event names can fit on one or two lines.
I searched around looking for a solution to this but all answers corresponded to an older version of which the code is different.
Mike
]]>My school holiday dates are available online at https://myschoolholidays.com/Wilsden-Primary-School-8639 and I want them in this widget. How can I do it?
]]>Hi,
I am using it in a new version of wordpress. It is not working on IE9. Am i missing something?
]]>Hi,
I have a problem with feeds on this plugin.
The widget tell me to check my feed URL, which is https://www.google.com/calendar/feeds/colet.volley%40gmail.com/public/basic and seems to work in my browser.
I don’t know how to fix it. Can it be the HTTPS ? But I think Google forbid HTTP now.
I have the last version of the plugin : 0.7.2 with wordpress 3.3.1
Thank’s for your help.
]]>Hi
Ive tried all the calendar event plugins, and this one wins hands down, for me, but i would really like to find a way to add the events that i create in the calendar as a post, if anyone knows how to do this, please let me know.
Thanks
Rob
I have an issue with the event info pop-up. For some reason, I cannot view all of the information for the event and I wonder if this is a conflict with the custom theme that I am using.
If you visit https://trancefusiondesign.com/montclairplazacollective.com/eventscalendar/ and select any of the events, you’ll see the issue. Is there anything that I can do to make things work properly?
The theme is Sky by Elegant Themes.
Thanks in advance,
Eric Reynolds
]]>Get error “Unable to Open File” must rename plugin and remove via Dashboard to restore site usablility.
]]>Hello everyone,
I am using Standard theme, and I have placed the widget – but as you can see at the link below (it is lower on the page until I can get it fixed), it is using the theme’s default font settings for style, color, size and spacing – and it is both chunky and very hard to read.
https://testwp.ogrepraxy.com/
I have a couple of questions regarding the ability to change these elements:
1) How do I change the font type, size, and color?
2) How do I fine tune the spacing, so that it doesn’t look so clunky and take up too much room?
3) How do I adjust the content displayed, so that it provides the date as a range (October 17-20, 2011)?
I am assuming that I can do all of this through my custom.css file, but I do not know how to add lines that specifically address the Upcoming Events section only.
Thank you for your help!
Peace,
Jason
I love Ajax calender so far its doing EXACTLY what I want it to do.. except for one thing.
I need to be able to do the times in 15 minute chunks instead of 30 minute ones
i.e: 6:15pm instead of 6:30pm
Is there an easy way to do this?? Thanks!
*edit* Ooops, nevermind.. I found the reply from Eran on another thread
]]>you can easily modify the time-step from 30 minutes to 15 minutes in the init_admin_calendar.js file:
from
step: 30,to
step: 15,Eran
I have installed AJAX Calendar from my WP control panel, but when I use it it looks like this:
screenshot
It’s only the aspect, posts are marked correctly.
How can be fixed?
Thank you very much
]]>When I enter an event title with an apostrophe, it is displayed with a forward slash (ex. Mother\’s Day). Any fix?
]]>I’m trying to find out how to put the calendar on an events page, not on every page via the sidebar widget space.
Is this possible through some code like {calendar} ?
]]>There is no interface to change the months, or, is not visible. Why make an ajax calendar if it’s not possible to switch the month/view a teaser or list of the articles using ajax?
]]>Hello Eran,
I’d like to congratulate you for this wonderful plugin.
I notice that ajax calendar returns /’ as soon as you write an apostrophe in the fields.
Is it a known issue or have i something to do to resolve this problem ?
Best regards
]]>After testing numerous calendar plugins, I decided on the Ajax Calendar. For the most part, I like the way it works but I discovered a problem with the way the Upcoming Events widget displays.
I have the widget in a sidebar. The widget only allows a display option of how many weeks should be displayed. But the widget is located in a sidebar that I want to have a fixed height.
If the next week has few events, the widget displays those events and blank space underneath. I’m okay with that. If the next week has a lot of events, the widget displays them all, expanding the height of the widget so that the areas on display to the side of the widget now have huge white spaces. That does not look right.
What I would prefer to see is the choice of How Many Weeks to display changed to How Many Events to display. That way, I could have (lets say) six or seven events (whatever will fit) in the widget and it will be more or less the same size at all times.
Thoughts?
]]>We’re having problems with version 2.4.10 of Ajax Calendar and W3 Total Cache plugin. The caching plugin is badly needed on our site, but it seems to cache the dates on the calendar also. So when the editor publishes an article for the calendar, the article doesn’t show up(it shows up only after the url is appended with some querystring like ?testing).
]]>