WordPress.org

Forums

[1.5] Calendar (8 posts)

  1. falloutme
    Member
    Posted 11 years ago #

    I was wondering if anyone can tell me where the calendar file is located at? I want to include the file in my header.php file but i can't find the calendar file to include it in.

  2. davestinner
    Member
    Posted 11 years ago #

    The code to call up the calendar is <?php get_calendar();?>

  3. falloutme
    Member
    Posted 11 years ago #

    I know that but that only works when it's displayed in the wordpress index page i need it to work in other pages

  4. James Huff
    Support Representative
    Posted 11 years ago #

    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.

  5. Starlet
    Member
    Posted 11 years ago #

    So i can't put it in my header.php file that i include? dayum.

  6. davestinner
    Member
    Posted 11 years ago #

    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.

  7. acrylamid
    Member
    Posted 11 years ago #

    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.

  8. acrylamid
    Member
    Posted 11 years ago #

    mhm, I think I found where I should do my edits.
    The locale.php file.

    Yes, it worked.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags