Dynamic Wordpress Theme
Posted: Sat Feb 28, 2009 2:30 am
I have a site with Wordpress installed in the root directory, I have also installed Article Dashboard in a directory called /articles.
I would like to use the same Wordpress theme for Article Dashboard rather than having two separate templates.
Is it possible to run an if statement which grabs the URL and displays certain elements depending on the directory.
For example
If the current page is within the articles directory /articles i.e. an article dashboard page then display <title>{SITETITLE}</title> else the page must be a Wordpress page therefore display <title><?php wp_title(); ?></title>
Any advice would be greatly appreciated,
Cheers,
Mike.
I would like to use the same Wordpress theme for Article Dashboard rather than having two separate templates.
Is it possible to run an if statement which grabs the URL and displays certain elements depending on the directory.
For example
If the current page is within the articles directory /articles i.e. an article dashboard page then display <title>{SITETITLE}</title> else the page must be a Wordpress page therefore display <title><?php wp_title(); ?></title>
Any advice would be greatly appreciated,
Cheers,
Mike.