• I post my question again, as the topic headline dindn’t show:
    I have more pages in my photoblog than the index.php. The calendar is displayed in the right menu, and when I open for ex my page info.php I get the following message instead of the calendar:
    Fatal error: Call to undefined function: get_calendar() in /customers/oppenbok.com/oppenbok.com/httpd.www/photogal/footer.php on line 34
    Why? Can I add something to the directory? What does undefined function mean? in b2 it was simply an include, which was simpler.
    My photoblog
    Please, someone, how can I solve this problem?

Viewing 2 replies - 1 through 2 (of 2 total)
  • get_calendar() is a functions inside WordPress and it cannot be used without including the WordPress files. Add this to the top of every page that you want to use get_calendar function (if it does not exist already)
    include('wp-config.php');

    Thread Starter johannareb

    (@johannareb)

    Thank you so much. It was simpler than I thought, but since I don’t know much about php.. Thank you once again for answering.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘get calendar-function does not work’ is closed to new replies.