Adding the calendar in WordPress

Tuesday, January 31st, 2006 | Uncategorized

This is the info…
http://codex.wordpress.org/Template_Tags/get_calendar

but to save you all from having to go to a different page, I shall explain it here.

You simply need to add a line of PHP code to the template. The code is:

< ?php get_calendar() ? >

The steps:
1. Go to the admin section of WordPress.
2. Presentation
3. Theme Editor
4. Sidebar
5. Find where this part of the code is:

< ?php wp _list_pages('title_li=< h2>Pages< /h2>' ); ? >
	< li>< h2>Archives< /h2>
		< ul>
		< ?php wp _get_archives('type=monthly'); ? >
		< /ul>
	< /li>

6. and add the calendar code before the wp_list_pages junk.
7. update the page and BANG! You’ve got a calendar.

*Be aware, I had to add some spaces in the above code so that it would show up properly.

Popularity: 7% [?]

Tags:

5 Comments to Adding the calendar in WordPress

Meagan
February 1, 2006

Hey Ammon–
Can you give me that code for uploading/downloading in Terminal? I got a taste of the power and I want to exploit it! Thanks!

Meagan

ammon
February 1, 2006

Surely!

But here is a link to a good reference for a bunch more commands (they’re called commands on a terminal, instead of code :) ).

unix guide

The command to securely copy files from one computer to the other is ’scp’, and it takes the format

command options sender receiver

So an example would be:

scp -r user@somecomp.com:~/stuff ~/Documents

That would copy recursively (-r) all files and directories located in the directory named stuff which is in the home directory ( ~ ) on somecomp.com (this can be a domain name or IP number), to the local computer in the directory Documents.

To copy a file from the local puter to the server, just switch the last to options.

Meagan
February 1, 2006

Thanks, you rule all.

nona
February 2, 2006

thanks! running to try it now… will let you know if/how it works.

nona
February 2, 2006

worked perfectly…. thanks again

Search

Categories