PHP Include (2 posts)

  1. shickles
    Posted 11 years ago #

    Hello --

    WordPress and php newbie. I need general instructions on including non-Wordpress php files in a WordPress page. Specifically I am trying to include the month view from Webcalendar in a WordPress page. I do not want to do this with an Iframe.

    I have created a template where I have hardcoded an include pointing at 'portable-month.php' which is the Webcalendar month.php file with the html head and tail pulled out. The idea is to wrap the WordPress theme around the Webcalendar month view.

    The parser seems to be choking on the include because of path and config issues. I have tried several different paths, all to no avail.

    My calendar and wordpress directories are peer directories just under the root. How do I go about making them talk to each other?

  2. masquerade
    Posted 11 years ago #

    try using include(ABSPATH . '../calander-foler/portable-month.php');

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.