Home Forums Events Calendar Add-on Calendar URL problem

Calendar URL problem

Posted: July 30, 2012 at 4:19 pm

Eric Amundson

July 30, 2012 at 4:19 pm

So on a recently launched site of ours, we noticed that links to the calendar went to different pages than links to events on other pages.

After looking into it, we noticed that the file expresso-calendar.php file (lines 312 and 316 in version 2.0.3 used a function get_option( ‘siteurl’ );

Could it be possible to change this to home_url() function, or at the very least get_option(‘homeurl’)?

The problem with using get_option(‘siteurl’) is that the site url is not always the same as the home url. If you keep WordPress in a separate directory from your index.php file (which is recommended) then your calendar plugin doesn’t link properly (the query string seems to break the default redirect that WP uses).

The Home url fixes this. Thanks!


  • Support Staff

July 31, 2012 at 8:06 am

I’ll create a ticket. Note that the calendar will grab the event permalink in Event Espresso 3.2, so if this change doesn’t make it into a new version of the calendar, updating to Event Espresso 3.2 will address this.

The support post ‘Calendar URL problem’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso