A picture is worth a 1000 words so take a look at 2 of them using first and second layouts and download the plugin
Description
Calendar Archives is a visualization plugin for your WordPress site which creates yearly calendar for your posts. Create a new page (having ‘no sidebars’ layout) for your calendar archive and insert the shortcode [calendar-archive] in the editor. Load this page and enjoy the view!
Each day of calendar will display first available photo from posts of that day in the background. The plugin’s view is customizable and has two working views in the download
Installation
1. Upload directory ‘calendar-archives’ to the ‘/wp-content/plugins/’ directory
2. Activate the plugin through the ‘Plugins’ menu in WordPress
3. Configure plugin options by clicking on ‘Settings’ link near plugin name or ‘Settings’ -> ‘Calendar Archives’ navigation link. Make sure that your plugin directory must be writable by webserver to use caching of pages and images
4. Create page having [calendar-archive] shortcode. It will be better to use empty (having no sidebars) template for this page
Note:- This plugin is tested for WordPress- 2.8.4 2.9.1 only but should work on previous 2.9.* or 2.8.* versions


Hey !
great plugin ! Nice !
But I get an error when I display images –> “Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration”
:/
Can I see a working version of this plugin somewhere? I’d like to see how it works with actual posts before installing.
@valentin: Thanks for appreciation. You get this error because your PHP is not configured to open URLs over HTTP (that’s what the error says ‘URL file-access is disabled in the server configuration’). If you disable ‘show images’ setting for ‘calendar archives’ then this error will be gone and no images will be displayed
@jack: I will set-up a demo soon, till that time you can try this at your local wordpress set-up (if you have any)
Thanks
Works great, thank you
Great plugin Amit,
how can i translate the plugin , or is it a way to internationalise it ?
Thank’s
i’ve found how to translate the days names (calendar-layout-1.php file) but did’nt found the month names…
anyone installed this who can give me a link so i can see it in action
Regards
you can see it here http://francois.keller.free.fr
@baron: Thanks for appreciation!
@François: Thanks for appreciation. The way to internationalize the plugin will be coming in next version
@Tiger: http://www.geekeries.fr/archives/, this is one more demo
Images aren’t showing up for me, though I see no errors either. Where should I start troubleshooting?
@Andy: The ‘show images’ setting is ON? the ‘cached_images’ directory in plugin directory has any images? If you can change some PHP code then remove all ‘@’ (error suppression operator) from plugin file and then try to see the errors
Thanks
‘show images’ is checked. There are no images in the ‘cached_images’ subdirectory of the plugin directory though.
I’ll try removing the ‘@’ operators.
removing ‘@’ chars had no apparent effect. But by instrumenting the code a bit, I have determined that the problem is that the call to preg_match_all() in calendar_archives.php is producing matches which are urls starting with ‘http:’. When file_get_contents() is later called on such a url, it fails.
I’ve fixed it by patching calendar-archives.php. Email me if you are interested in details.
Hello Andy, Can you e-mail me the fix. I have the same isue
Hi Andy.
I have the same problem. I would really be interested to get the fix if possible. Thanks
@Valentin, @Andy, @Adrian, @Emmi: I have released new plugin version today, this will fix the problem – please try and let me know
Thanks
Hi.
I downloaded the plug-in again. I published a page and it looks good but I get this when i´m publishing:
Warning: Invalid argument supplied for foreach() in /customers/mediariket.se/mediariket.se/httpd.www/ediary/wp-content/plugins/calendar-archives/calendar-archives.php on line 223
Warning: Invalid argument supplied for foreach() in /customers/mediariket.se/mediariket.se/httpd.www/ediary/wp-content/plugins/calendar-archives/calendar-archives.php on line 223
Warning: Invalid argument supplied for foreach() in /customers/mediariket.se/mediariket.se/httpd.www/ediary/wp-content/plugins/calendar-archives/calendar-archives.php on line 223
Warning: Cannot modify header information – headers already sent by (output started at /customers/mediariket.se/mediariket.se/httpd.www/ediary/wp-content/plugins/calendar-archives/calendar-archives.php:223) in /customers/mediariket.se/mediariket.se/httpd.www/ediary/wp-includes/pluggable.php on line 865
Now I am no expert so I do not have a clue what this means. Appreciate a little help. Thanks.
I love this plug-in so it would be nice to see it work properly.
@Emmi: Thanks for pointing out the problem. I guess you had this error at admin side and not while viewing calendar. Please download the plugin again and let me know more
Hi Amit
This time it works perfectly. And yes, the error was on the admin side.
I can send you links if you want to see how they look.
Thanks again. This plugin is great and just what i needed.
@Emmi: Thanks for feedback. It will be great if you provide demo link to view how calendar looks
Here are the links:
Emmi´s Portfolio
Emmi´s Photodiary
I would like to have it on my Formula 1 blog too, but for some reason whatever I do the calendar won´t show up. I am out of ideas so I gave up to try to fix the problem.
Hello !
Does anyone know why I have this error with this plugin ?
Fatal error: Call to undefined function: file_put_contents() in /space_3/a/armand38/italien/wp-content/plugins/calendar-archives/calendar-archives.php
@flavinou: The error is due to your PHP version (4.x) because file_put_contents() function available in PHP5. Anyways, I will fix this and let you know when done
Thanks
Hi,
i use the plugin.
But in Germany the first day of the week is monday. Where and how can i change this?
@Dieter: Thanks for using the plugin. To change start day of week, there is no setting, I am planning to add it in next version. Till that time, you can wait or if you know PHP then also change the code as needed
The plugin is really great.
However, I didn’t figure out how to create an empty template/page without sidebars. I’m using the theme “WordPress Default 1.6″. Any hints?
@Jan: Thanks for appreciation. Though your question about creation of page template is not related to my plugin, here is link to do that, http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates
Nice plugin. However i’m wondering if the the resizing would work better before writing to the image cache?
Really great plugin. Thank you. I have a few questions:
1. Can you specify a particular category to show posts for?
2. Do you have the ability to show upcoming posts?
I would like to use the plugin to show events (posts) for upcoming and past events..
Thanks again!
Brian
@seriocomic and @Brian: Thanks for appreciation
@seriocomic: Yes, we are resizing the image and cache it to use that again
@Brian: No, both of the things you need are not there in plugin but you can modify SQL query in plugin to match for your needs
My friend, I know how to instert some comands, but what does this means ” insert the shortcode [calendar-archive] “, can you give me the full code to insert, I’m really ban on programing.
thanks.
regards.
@fernando: It seems that you are newbie to wordpress, shortcode is like a tag which is used in content of page/post. So if you create a page in wordpress and place [calendar-archive] in content of it then save it, you can view your calendar archives after accessing that page
One of the examples of shortcode is http://codex.wordpress.org/Gallery_Shortcode
Thanks
Hello – I have CHMOD my plugins folder to 777 and I still get the error: Your plugin directory (or ‘cached_pages’ directory, if it exists, in your plugin directory) is not writeable by WordPress. Caching is not possible.
Do you have any suggestions? I checked through cpanel, and it says my plugins directory is writeable.
@Autumn: You are sure that your plugin directory (the directory in which calendar archives plugin related files exist, i.e., wp-content/plugins/calendar-archives in your wordpress install) is writable by web server? If yes then check if ‘cached_pages’ directory in wp-content/plugins/calendar-archives is writable by web server or not
Thanks
@Amit, can you explain how to use the pot file to translate the plugin (i’m using poedit but don’t know what to do withe .mo and .po file generated…)
Thank’s
François
Hi, I would want to translate plugin to the Russian language. Please tell me your email, simply reply to mrilyuha@gmail.com. Thanks!
I’m trying to make the thumbnails in the calendar clickable, rather than the titles, as my posts don’t have titles. Is this possible? I’m not sure which parts of the code to change…
@Phil, have you already figured out how to make the images clickable?
Thanks in advance
@Phil: You can modify existing layouts (calendar-layout-1.php or calendar-layout-2.php) or create new one (calendar-layout-3.php) as per you need
Thanks
Hai Amit,
How can I make the images clickable?
Wich line and wich code do I have to adjust?
Thanks in advance.
Thanks Amit. I know which files to edit, I was just trying to work out which bits of the code, but I’ll figure it out.
Hi, great plugin. I had a problem here.
It works well in one of my blog [http://furniturebookmark.com/archives] but It deformed on my other blog with the same plugin setting [http://gardeningbookmark.com/archives]. Any suggestion please? Thanks
@Fath: Thanks for appreciation. From the information you have provided, it doesn’t clear where the problem is. Can you please elaborate more on it like if you have any errors in logs etc.?
Amit
Hi Amit – I’m very impressed with this plugin’s capabilities, but I’m having trouble getting my images to display. I think I have two different issues.
First, an image from each post isn’t being written to the cache-images folder. I’m pretty sure I know why this is. I’ve been able to reproduce the problem, so I won’t bother you with it.
But I’m stuck on my 2nd issue – the pictures that ARE showing up in the cache-images folder aren’t being displayed on the calendar. The calendar boxes that have images associated with them do look different (which is encouraging). On those, the date bar is a different color and I can’t see the title of the post unless I hover over the calendar box. Then I can see the post title. It’s almost as if the image is there but invisible!
Any ideas? Thank you!!
Sorry – I left the wrong website. I gave you the address of my static/html site. I’m moving to wordpress, obviously. This time I gave the correct URL.
Becky did you ever figure out why your images don’t show up? I have the same problem. I’m running wordpress locally
Does this plugin work with NextGEN Gallery? I downloaded this plugin and made a page for it, but there are no images on the days in the calendar. It only has the title of my posts. I checked the box in the options labeled “Show images”.
I figured out that if I put the image url in the post rather than inserting it from NextGEN Gallery, that it works, but is there a way to make it pick up the images from the posts if I keep adding it from the NextGEN Gallery? I’d hate to have to go into all of my posts to change how the images are inserted….
How can I make this display the calendar without bullets in front of everything in the 2nd layout?
hello,
really nice plug-in!
but i got a question on customizing it.
is there any chance to just show one month per page and add links to the months before and after?
thanks,
paul
@Paul: Thanks for appreciation. Currently there is no such setting to display only one month per page but you can modify the plugin as per your need.
HI, I love this plugin, but am having a small amount of trouble with the sizing – can you let me know how to make it slightly narrower? At the moment it is cutting off halfway across the last day of the week.
Thanks!
@Laura: Thanks for appreciation. The width of calendar’s month box is calculated automatically using the image thumbnail size you have provided in plugin’s settings. So change in image thumbnail size should fix your problem.
Hello and congratulations for this plugin.
I’ve translated it in french today, feel free to download this translation for the next version here : http://www.wptrads.fr/calendar-archives/
Keep the pressure
Amit, this is really fantastic! Thank you!
Amit,
Great plugin.
However, for some reason, the pictures are not showing up.
Show Images is checked.
There are also resized pictures in the Cached_Images folder.
If there are multiple images in a post, is it the first image that is automatically selected for the calendar pic?
Appreciate your help.
Thanks for appreciation. Yes, you are right. If there are multiple images in a post, the first image that has width/height greater than equals to box/image dimension (provided from admin backend) will be automatically selected for the calendar picture.
Is it possible that the calendar shows post only from a specific category(s) or tag(s) ??
This would be a great feature. Please consider telling how to do it.
usage-1. I write several blog posts, some talk about an event, so I tag it ‘event’ and it shows up in the calendar, other posts not tagged ‘event’ don’t show in calendar.
usage-2. same as above, except I categorize it ‘blog’ and ‘event’ category. ‘event’ category only displays in the calendar.
Thanks for a great development. Good luck in the future!
I just downloaded and am testing this as it’s just what I was looking for. One thing that would make it really cool is a drop down in the settings to choose a category to pull from.
Just a thought.
Great work.
Does anyone understand or have an example of how they have set the category for images to display. This is in the FAQ on the plugin but I really don’t understand what it means or how to implement it.
How to display posts under particular category?
If URL has ‘category’ parameter then it will be used as category slug, for example, http://www.my-domain.net/my-blog/my-calendar/?category=uncategorized
Thanks
I used to use MovableType as my blogging software until 2004. Before moving to WP, my MT blog has a “archive calendar” (as like what this page show) but I can’t figure this out with WordPress.
That’s what I want! Thanks for making this plugin.
Great plugin Amit, many thanks. It works OK for me on WP3.0 also. Very much appreciate your hard work there.
Thanks for the appreciation
Hi,
I’ve been using this plugin for a while and I really like its simplicity. However, is there a way to make future months show up on the calendar? For example, I have a few posts scheduled for September and I’d like them to show up on my calendar.
Thanks in advance.
There was a bug due to which future months was not shown though ‘Display upcoming posts’ setting was ON but I fixed it last week and released new version of the plugin. If you update the plugin then future months should be shown.
Thanks
It’s brilliant – thanks!
Hey Amit-
Love it! Quick question…
Is there a way to just have the date linkable instead of listing all of the posts or just listing the number of posts for that day and having that take you to all the posts for that day?
I’m running BuddyPress. I honestly don’t know how many people will posting and would hate to have a gazillion listed.
Any thoughts or suggestions?
Thanks and best wishes,
Kristen
Thanks for the appreciation. About the changes you need, if you know the enough PHP then can modify ‘calendar-layout-1.php’ or ‘calendar-layout-2.php’ according to the layout you are using.
First of all – GREAT plugin!! This is EXACTLY what I was looking for! Thank you for all your hard work on this!
1. I am curious as to why we need to set for no sidebars. I went back (just for giggles) and put my sidebar in after resizing the calendar and it shows great..is there going to be a future problem if I leave the sidebar there?
2. Is there any update in the future to just show one month and then have arrows to click to the future or past months? We plan on doing a yearly calendar of “silly” holidays that will pretty much stay the same. We had wanted it to be our front page (with sidebars, widgets, etc), but since this plugin is not supposed to have sidebars, I’m a little bit leary of setting it up as such!
Thank you again!!
Hello, love calendar archives, but after the most recent upgrade I noticed that there was what I believe a bug in the plugin.
On the archive page, everything works fine, but the month of each calendar section doesn’t appear. All the images, the days, the dates and everything else works, it’s just that the individual months seem to have disappeared. I tried looking through the files, reinstalled the plugin and check it against my theme files, but no luck.
I was wondering if anyone else have experienced this problem.
Thanks for the appreciation and finding out the bug. For me, everything is working fine. Can you please give me URL of the site where you have problem, so that I can try to fix it?
Hello, sorry about the late reply, my website calendar page is located HERE.
Thanks
The problem is with the mark-up. The calendar outputs month names in h1 tag and your inline style for ‘#post-5200.post h1′ is ‘display: none;’.
Dear Amit,
I have started to get the following error:
Fatal error: Allowed memory size of 33554432 bytes
Any ideas how to fix this?
I think you need to increase memory size (it’s 32MB currently).
Hi Amit,
Thanks for the quick reply. I understand now it’s not to do with your plugin.
My limit however is currently 100MB and I’m only using 32MB, so there is some other problem.
Q from a newbie. Sorry but what do you mean by “Create page having [calendar-archive] shortcode”? Where does that information/code come from?
Thanks.
Shortcode is like a tag which is used in content of page/post. So if you create a page in wordpress and place [calendar-archive] in content of it then save it, you can view your calendar archives after accessing that page.
One of the examples of shortcode is http://codex.wordpress.org/Gallery_Shortcode
Thanks
Hi there, I’m having a problem displaying the background images. Seems like the code never enters this if statement:
if (isset($backgroundImages[$month][$day]) && false !== $backgroundImages[$month][$day])
{
$backgroundImage = $backgroundImages[$month][$day];
}
Any ideas? Show image is checked in the plug-in directory…
Thanks,
Javier
Hi
Though the ‘show image’ is checked, the background is shown only when it’s available for any post of that day.
Amit
Yes, off course, but what is it that makes a background available or not? So I know what’s going wrong…
If image’s height and width is not less than box dimension setting then it will be used.
Still no luck with the images, here’s the preview link:
http://www.moonward.net/?page_id=778&preview=true
Any ideas what’s going on?
Thank you,
Javier
Think I found a way, thanks…
Hi Javier
I have the same problem too and couldn’t resolve it.
Could you please kindly let me know how you solved the problem?
Many thanks
hi from Chile… How to change the months in spanish?
This will help me too, I can’t find it…
Hi.
First, I would like to parabenize for the amazing plugin you have made. It was exactaly what I needed.
But, I would like to translate de month and I don’t find where to do it.
I’ve also noted that there is more people trying to translate, whithout sucess.
Can you give us some clues?
Thank you.
Hey,
i would really appreciate to use your plugin but it really ruins the layout of my page that you can´t switch between showing all monthes and only one month. Is there any easy way within the PHP code to change that?
Thanks in advance!
Since 2011 started, Calendar Archives doesn’t show posts of 2010. How can I show postst of 2011 as well as posts of 2010?
I love this plugin. Thanks for all your hard work. One issue and one request.
Only 2011 shows on the calendar. If I click any other year, 2011 still shows up no matter what. How do I fix this?
Also, is there any way I can change the background image from images used in the post to the newer “featured image” used in WordPress?
Thanks for your time!
freefringes.com/archives
Hello Amit!
I love ur plugin very much. I’ve used it on my site. Before today its working nicely. But somehow the Plugin page doesnt show the Calendar.
I’ve checked the shortcode [calendar-archive] is ok. I dont understand what should I do now? Could you please help me?
You can visit this url to see the problem http://purbanchal.com/daily-archive
Hello Amit,
I have just installed your plug-in. Does it work with WordPress Version 3.1?
Thank you.
Hi,
I just installed the calendar archive and get it to work for the most part. I was able to create a custom page with no sidebars and the calendar displays.
The problem I”m having is that layout 2 (which I like) displays the last day of the week of the week on a seperate row. The layout 1 doesn’t have this problem but the formatting seems off and there is not lines inbetween the days and the number of days are a bit off. I would really like to get layout two to display correctly. I have not even played around with images yet.
Thanks for this cool plugin and hopefully I can get it to work.
Amit, this is nice plugin. But I am facing some issue to display images in calendar. Show images option also on.
Please, someone can it translate ti russian?
or give a link where I can download with russian days and monthes.. thanks
Love the plug in, but there is a line that shows on the page ‘view calendar for year 2010 2011′ – the years are clickable
When I click 2010, the page reloads with no calendar, even though I have posts in 2010. Thoughts? I’d like to either make this work or remove that line!
Thanks, patty
Hi, I love the plug in! Is there anyway to only have the current month show up instead of the entire year? I am new to wordpress and I didn’t know if there was an easy way to do that? Thanks, Bonica
RE [WordPress Plugin] Calendar Archives
Hi – Great Plug in….
Please can you tell me if there is a way that allows only ONE month at a time show?
Thank you
This plug is in great but sadly it doesn’t work for featured images. Any plans to enhance?
Happy to have found this great plug in. Thank you! It worked great at first… For some reason, now Saturday is wrapping around to the next row. How can I get the whole week back to the same row? I tried changing the size of the boxes, but it didn’t help. Any suggestions?
Thanks for your great plugin, I´m already using it, but I have a question is there a way to use different width and height for the thumb used on the post?
I need the picture to be at least 120px by 200px is there a way to do it.
Thanks on advance.
Thanks for the appreciation. You can configure image’s size using ‘Box/image dimension’ field, however, by default, there is no way to provide different height and width of background image.
thank you very much, I did work properly.
Is there a way tu publish only one category?
Yes, there is a way to view posts in calendar using only one category. You just need to pass ‘category=<category-name>’ in the URL, for example, http://www.gapema.com/calendar?category=Test
Is there any option to show month by month, not whole year at once? Also is there any option to manually code it into page template?
Bug alert:
1) finding media.php from word press core line 441 constructed a wrong resized destination path.
2) calendar-archives.php line 578 str_replace abspath to siteurl cannot handle backward slash and forward slash properly.
I made the following changes in order to make it work:
media.php:
$info = pathinfo($file);
$dir = $info['dirname'];
$fname = $info['filename'];
$ext = $info['extension'];
$name = wp_basename($fname);
original
$info = pathinfo($file);
$dir = $info['dirname'];
$ext = $info['extension'];
$name = wp_basename($file);
calendar-archives.php
return str_replace(str_replace(‘\\’,'/’,ABSPATH), get_option(‘siteurl’) . ‘/’, str_replace(‘\\’,'/’,$resizedBackgroundImage));
In calendar-archives.php, I think it may not be the best way to fix it. However, I need to make it work then make it right.
Thanks.
Sam, modifying core file is not a good option.
Hello,
I have been using your Calendar Archive wordpress plugin for a long time, and love it.. but all the sudden it doesn’t work anymore.. any idea why?
http://creativebalorina.com/calendar-of-posts/
thank you for your time
Lorina Daiana
Lorina, the mentioned page is displaying fine for me.
hmm it seems to be in Google Chrome only .. thank you for the observation, I wouldn’t have known otherwise
I left a comment here in January and kept checking for an answer for 2 months…now it seems my comment was deleted. The plugin does not work in the Safari browser. The links are not clickable. Please advise if there is a fix for this.
Hi there,
The plugin is working for us in Safari. Please give a URL of your blog to test
Thanks
Please try clicking on any of the posts in July 2011. They images are not clickable in Safari. If I use Internet Explorer it works..but not in Safari.
I have tried to replicate the problem using Safari on Windows and Mac, the links on images were clickable. Which version of Safari are you using?
Hello – I have the calendar installed, but the images are not displaying on the days. Instead it is showing a small box with a red X. Here is the URL http://www.checkoutmyshirt.com/calendar/. Any ideas on what I’m doing wrong? Thank you!
Hello there,
I looked into this and found out that the image you are trying to render, for example, http://www.checkoutmyshirt.com/wp-content/themes/thesis_18_mikebman/thumbnail.php?image=http://www.checkoutmyshirt.com/wp-content/uploads/2012/03/Incredibuzz11.png is outputting ‘page not found’ error. It means the problem is with ‘thesis_18_mikebman’ theme’s thumbnail creation script
This is just the plugin I was looking for. However, when I try to post images I get an error. It may be the path related issue Sam Folk mentioned above. As you can see, I am testing on my local wamp server, and running wordpress 3.2.1. The full-sized images are showing in the cached_images folder, but I get the following error (copied from the source code):
<li class="day"
Warning: imagejpeg() [function.imagejpeg]: Unable to open ‘E:\wamp\www\wordpress_mobile\wp-content\plugins\calendar-archives\cached_images/E:\wamp\www\wordpress_mobile\wp-content\plugins\calendar-archives\cached_images\113-341d44448aac6af8464d566723965c42-140.jpg’ for writing: Invalid argument in E:\wamp\www\wordpress_mobile\wp-includes\media.php on line 459
Warning: chmod() [function.chmod]: Invalid argument in E:\wamp\www\wordpress_mobile\wp-content\plugins\calendar-archives\calendar-archives.php on line 578
style=”background-image: url(E:\wamp\www\wordpress_mobile\wp-content\plugins\calendar-archives\cached_images\113-341d44448aac6af8464d566723965c42-140.jpg);”>
5
5
test 2
I can see that it is a path problem, but I have not made any changes to your plugin, and so don’t understand why it does not work out of the box. If anyone can see why, please let me know!
Hello there,
The errors were due to handling of paths in WordPress’ image_resize() function and Windows, at one place ‘/’ is hardcoded
It will work on Windows once this bug in WordPress is fixed
Thank you very much for your reply. My local install and live install are both running the latest version of wordpress. It seems this erroneous ‘/’ is only affecting the path on the local server. Maybe it is because I’ve just installed the live version and haven’t made any changes to the thumbnail image re-sizing yet.
I tried on a live server and it works. Not sure what the local server issue is.
Another question. When viewed on my iphone, the image in the calendar is not clickable. On the PC, when I hover the mouse over the calendar image, the post title link is displayed. When I click on this the post opens. On a touch device, this does not happen, and the post cannot be opened. Anyone with a fix for this?
anybody with a smartphone fix?
Hi!
I have download calendar archive, and made a page for the calendar but on the settings I am getting a message for images ” [URL file-access (PHP configuration setting 'allow_url_fopen') is disabled in the server configuration. Hence, the images will not get downloaded and will not be displayed.] ” I read that this was fixed by your plugin in an earlier fix. I can’t get the images of the post to show in the calendar view
Please help!
Regards,
Penelope
Hi Amit,
I just installed your plugin on my blog…
Configuration is easy… Everything works like a charm…
So thank you very much.
However, I’d like to know if an improvement can be done…
I have many posts which don’t display an image…
I don’t want to add an image in my posts bodies… What I would like, is to display the first image available in the attachements… (postmeta / _wp_attached_file / jpg/png/gif)
Let me know if you find this idea interesting or stupid ;o)
Cheers,
W.
To be more precise, instead of working on post_content, using the column background from this query:
$posts = $wpdb->get_results(“SELECT P.*, P_TEMP.guid AS background FROM ” . $wpdb->posts . ” P LEFT JOIN(SELECT P1.* FROM ” . $wpdb->posts . ” AS P1 LEFT JOIN ” . $wpdb->posts . ” AS P2 ON P1.ID = P2.ID AND P1.menu_order ‘P.YEAR(post_date) = ‘ . $year);
$conditions['id'] = ‘P.ID ‘ . (0 get_results(‘SELECT DISTINCT YEAR(post_date) AS year FROM ‘ . $wpdb->posts . ‘ P WHERE post_status IN ‘ . $postStatuses . ‘ AND post_password = “” AND post_type = “post”‘ . (isset($conditions['id']) ? ‘ AND ‘ . $conditions['id'] : ”) . ‘ ORDER BY post_date DESC’);
Last comment regarding this code, the column background can contains 2 things: the url for the image, or NULL if none is specified…
Cheers,
W.
Hi Amit,
thanks for a great plugin.
Any progress in making the plugin internationalizable? Or ETA about the new version that will be? Would be awesome if the month names could be translationable.
Thanks again!
Regards,
Matheus
I have tested again on the iPhone 4s and iPhone 2 and and the images and links are not clickable. I don’t know how to check the version of Safari but it’d iOS 5.
I was wondering if there is a way to accomplish one of the following:
1) Make the calendar scaleable so that it changes width for lower-res computers.
2) Make multiple versions of the calendar. This way I can trigger which calendar version loads via media-queries.css. I have been messing around with the code, and still have had no luck with multiple width versions of a single calendar.
You can look at the site I’m working on: http://www.structurespoetryhumans.com
Thanks.
Joseph, I see that you are using the UL, LI version of the Calendar template – this can be styled using media-queries. You wont be able to load a different template with media-queries but you should be able to make it responsive…
Two things:
1) Could you give me more insight as to how to apply media queries to the UL and LI. I don’t really understand how to apply media queries to a plugin.
2) Could you tell me how to make it so my page works on iPhone/iPad?
URL: http://www.structurespoetryhumans.com
I figured out the li and ul formatting with media queries. I still am really struggling with iphone compatibility.
Hi,
It is really really a great plugin!! Readers of my blog like your plugin very much.
However, few days ago, the website hosting company told me that I can’t put files more than 1024 in one directory. The cache folder of your plugin was pointed out by the hosting company and they asked me to removed.
Can you teach me how to modify the plugin and separate cache files with folders year by year?
Anyway, thank you so much.
Great plugin, only I have checked marked add images, but only one is showing. How do I fix this? thank you!