therealmixmaster
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Using wordpress in an existing websiteAny help guys? If I’ve not made the nature of my enquiry clear please say…
Forum: Fixing WordPress
In reply to: Using wordpress in an existing websiteThanks for the replies. I’ve read over them and have a better understanding of how things work now. But now I have a new question…
I’ve installed wordpress in:
http://wpblog.michaelhopcroft.com… and want to use wordpress functions in different domains such as:
http://me.michaelhopcroft.comAs you can see by following the links it’s working fine but the functions that wordpress provide seem to default the links to /(the directory where I installed it)/index.php…
To give you an example, I can display all the posts on say http://me.michaelhopcroft.com/index.php, but if I click the title of a specific post it takes me to http://wpblog.michaelhopcroft.com/index.php… I’d rather it stayed at http://me.michaelhopcroft.com/index.php.
Is there an easy way to get it to default to the page you’re calling the functions from instead of the root of the installation directory?
Forum: Fixing WordPress
In reply to: Using wordpress in an existing websiteThanks for the speedy reply! 😀
What I’m trying to do is just have a page on my site that is a blog. It’s supposed to look like the rest of the existing site. But because these other pages will be feature rich I don’t want to use the WordPress “pages” technique where page content is simply taken from the database and put in to a template.
What I’ve done is to create a WP blog and a new theme that matches my website. However, I obviously want my blog page and the other pages on the site to use the same template code. The only way I could imagine doing that is by changing the other pages, which I’ve placed in the root of the WordPress directory, to take their template from the WordPress theme folder:
require( $_SERVER[ ‘DOCUMENT_ROOT’ ] . “/wp-content/themes/default/header.php” );
This seems like a bad solution to me. Is there a better way. Can I not get WP to use the “templating structure” of the website as I had developed it rather than it’s own system of defining header.php and get_header() etc?
I hope I’m making sense. If not ask questions and I’ll try to clarify.