Hi everybody!
I desperately need help…. The follow problem just makes me mad.
I have a WordPress website which runs a “static page” as homepage and has a normal page called Jobs which run a template and act like a job board. The website hasn’t any blog posts page defined.
The website has a couple of this kind of URL - for different section of the job board:
http://www.website.com/?page=postajob
http://www.website.com/?page=dashboard
http://www.website.com/?page=editprofile
After WordPress 3.0 upgrade when I tried to access these pages I am redirected to homepage. This is not a plugins compatibility problem – I already investigate and eliminate this possibility.
If I stop using a static page as homepage for my website, the website works well like in the past. If I used a "static" page as homepage - not the default "latest post" WordPress option the website doesn’t work anymore and the follow URL point back to homepage:
http://www.website.com/?page=postajob
http://www.website.com/?page=dashboard
http://www.website.com/?page=editprofile
The index page of my theme looks like this.
<?php
if($_REQUEST['page']=='postajob' || $_REQUEST['page']=='editjob')
{
include (TEMPLATEPATH . "/tpl_createjob.php");
exit;
}else
if($_REQUEST['page']=='jobpreview')
{
include (TEMPLATEPATH . "/preview_jobs.php");
exit;
}
else
if($_REQUEST['page']=='registration')
{
include (TEMPLATEPATH . "/tpl_register.php");
exit;
}
else
if($_REQUEST['page']=='dashboard')
{
include (TEMPLATEPATH . "/dashboard.php");
exit;
}
else
if($_REQUEST['page']=='editprofile')
{
include (TEMPLATEPATH . "/editprofile.php");
exit;
}
else
if($_REQUEST['page']=='deljob')
{
include (TEMPLATEPATH . "/preview_jobs_del.php");
exit;
}else
if($_REQUEST['page']=='delsuccess')
{
wp_delete_post($_REQUEST['pid']);
wp_redirect(get_option('siteurl').'?page=dashboard&msg=del');
exit;
}
?>
After WordPress 3.0 upgrade it doesn’t work anymore! Anyone has a clue about this?
Thanks a lot!