The code to call up the calendar is <?php get_calendar();?>
I know that but that only works when it’s displayed in the wordpress index page i need it to work in other pages
Moderator
James Huff
(@macmanx)
Volunteer Moderator
If you need it to work in other WordPress pages, just add <?php get_calendar();?>
to them. The calendar, being a core WordPress function, can not be displayed outside of WordPress.
So i can’t put it in my header.php file that i include? dayum.
Your header.php file is part of WordPress, so yes, you could put it there if you choose. What macmanx was getting at was you can’t just drop it onto any page on your site and expect to see the calendar. I have mine in my sidebar.php file.
Where can I find the calendar?
I looked in wp-includes för template-function-calendar.php
I want to change the calendars weekname. Today it is
“M T W T F S S” (english style)
and i want to translate it to swedish.
mhm, I think I found where I should do my edits.
The locale.php file.
Yes, it worked.