Support » Fixing WordPress » Troubles with calendar

  • My blog is going to be a part of my homepage.
    I want to have the calendar on the first page of my site,
    so when you click on a date, you are sent to the post. .

    I’ve tried using iframes, and tried to make a file that shows only the calendar I can link to in the iframe page. But I only get error:

    Fatal error: Call to undefined function: get_calendar()
    (then the adress to the file, and the line the error is in).

    And it’s not supposed to open in the iframe, but the mainpage.
    I’ve seen it work, I just don’t know how..

    I’m hoping someone has some ideas of what I can do.


Viewing 13 replies - 1 through 13 (of 13 total)
  • Don’t use iframe, it’s that simple.
    I have a calendar on a subdomain:
    and it will take you to a blog that’s in a different subfolder of the site. Just click on Dec.


    I’m still stuck.

    How do I get the calendar on my page, so that it will automatic updated?
    I’ve tried with different kodes, but nothing works for me.

    Your page has to be a .php file.
    Put on the top of it, before everything else, this:

    and then you can use any WP function in that file. E.g. I just put in the sidebar this:
    <?php get_calendar(); ?>
    That’s it.

    Thanks again.
    I still don’t get it to work. Even a small php file wont show the calendar. I don’t know what I do wrong.

    I only get the message;

    Fatal error: Call to undefined function: get_calendar() etc.

    Your index page MUST be index.php to do this sort of thing…. a separate php file won’t get it.

    Hmmm… I just tested with a file (saved the index.php as whatever.php, uploaded) and it works.

    Oh, that, yes. I understood him to mean (for some reason) that he was putting that in a “small php file” and then trying to load that file probably through the normal html….

    Thanks for the help 🙂

    Perhaps I’ll find out what I’m doing wrong.

    Is there any files I need to download extra for it to work? I’ve only installed what I dowloaded.

    I wrote the code that moshu wrote in a notepad. Saved as a php file, uploaded it to my hoast, and tried to view it in a browser… Then I get the error message.
    I tried both with and without html tags.
    Something I did wrong there perhaps?

    Did you replace the “path-to-your-blog” part with the real path where your WP install is?

    Yes. I chanched to my domain name, and folder where wp is installed.

    No. Path is not URL.
    The path is from your page (where you want the calendar!) to the WP install.
    E.g. if my main page is in the root and my WP install is in a folder called “moshu” – then the path is:

    Edit. Next time give us a real link and we can save a lot of time an space 🙂

    I got it right 😀

    Thanks. Sorry about the missing link.

    Thank you so much for the help. Really nice of you.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Troubles with calendar’ is closed to new replies.