Wordpress calendar by category
12 June , 2012
This is a really shaky way of doing it but it works great.
- Create a new page in your template directory called “the-calendar.php” place the following code in it:
http://pastebin.com/sUSzJMWM - Create a new script file (that has access to jquery). Put the following code in it (MAKE SURE YOU HAVE SET site_url to equal “get_template(‘blog_info’) . ‘/’”):
http://pastebin.com/Q16ibAZ0 - Now just include this wherever you want the calendar to be (keeping in mind that the above script must be accessible):
http://pastebin.com/fyhXrCiW
Don’t forget to style your date.php page in your wordpress theme directory!!! - Here is some default styling that looks awful but should get you started:
http://pastebin.com/NMauFJWq
The Calendar works by calling (via AJAX) an external PHP file that gathers and echos the HTML code that generates the table. On the success of the AJAX, it just fills the specific div with the returning html.
Please feel free to expand on the code and also ask questions if you can’t get it to work! I hope it saves you some time!
I will make this a plugin when I get the time!
Add / View Comments to this post - There are 2 Responses
Why does it take one to end one
25 March , 2012
The world is fucked up… and it’s obvious
25 March , 2012
Cycle through those pictures. You don’t have to be a genius to realise the world is completely fucked up.
What can we do. Anyone? I want to help now… I want to help. This isn’t right. ITS NOT FUCKING RIGHT.
Add / View Comments to this post - There are currently no comments
Aion online is now free to play! Free mmorpg
8 March , 2012
Aion online just went free to play… Yet another to join the growing list of free mmorpg’s. Make sure you either give it a try, or get back into the game you left behind… coz it’s damn fun and a beautiful game.
Add / View Comments to this post - There are currently no comments
Javascript Regular Expression – Search and replace using regex
15 February , 2012
I have created a simple script that allows you to search and replace using regular expressions. It uses javascript to do so.
Really hope it helps some people out as it did with myself and colleagues.
Click here to use the search and replace regular expression tool
Simply describe your regular expression as follows:
.replace(/]*>/g, "")
Feel free to put as many replaces onto the end as you like.
Please report any bugs or requests
Add / View Comments to this post - There are currently no comments
Latest Comments
- James: Check this page out: http:/...
- Reshy de Creshy: We sit down here, our favourit...
- Matías: Hi. I can't do I work. I want ...
- James: Party play was finally added a...
- Jordan: then why does it show a party ...
Latest Poetry
- Concrete waves:
Post added - 10 September , 2012 - The irreversible:
Post added - 10 September , 2012 - Here we are:
Post added - 6 September , 2012
Latest Music
- Never finished:
Post added - 28 November , 2010
- Always rains – 04:29
- Cliffside – 01:13
- Cosmic tribunal – 04:03
- Desperation makes friends – 06:29
- Dusty blues – 03:22
- Forward is a chance we take – 02:33
- Intersect – 02:04
- Sheriff – 06:25
- To sleep – 01:20
- Wake in your dream – 02:38
Latest Pictures
- Untitled3:
Post added - 22 June , 2012





