PDA

View Full Version : where to install calendar if WP install is not in root directory?


lauras2009
08-11-2009, 06:35 PM
Hello,

I am trying to install the calendar into WordPress on my local machine. My WP install is two levels down from the server root directory, i.e., /wordpress/JCDS/ .

Where should I put the calendar so that it will work?

I am assuming that the code that goes into the header.php file will have to be adjusted accordingly (depending on where the calendar directory goes).

Similarly, if I want to create a WordPress "page" that calls the calendar (I do not want to put it in the sidebar), do I just create a page and use this code (again, adjusted for wherever the calendar directory will go)?

<?php require("calendar/calendar.php"); ?>

?

Thank you very much,
Laura S.

lauras2009
08-12-2009, 02:07 AM
I played around with it and figured it out. I started with the whole path:
/root/next-dir/next-dir2/next-etc/etc/ and then tried deleting the first slash / and reloading the page, and then deleting /root, and reloading the page, and then deleting /root/, and reloading, and then deleting /root/next-dir, reloading, etc.

Trial and error finally worked and I figured out the right path.

ve9gra
08-12-2009, 06:30 PM
Sorry for my delay to respond... Have a look at the tutorial on how to install EPC in WP Part 1 (http://www.epctutorials.com/tutorials/how-to-integrate-the-calendar-in-wordpress-part-1/) and Part 2 (http://www.epctutorials.com/tutorials/how-to-integrate-the-calendar-in-wordpress-part-2/).