Hi All,
rainthebat
I do have a question, specifically what does BLOGNAMEHERE/ represent? Is it a path?
What I'm doing here is retrieving the end of the url. Whatever is after .com/
In my understanding if WOZ is installed correctly then the address would always be www.domain.com/blog
So with
PHP Code:
require(DIR_WS_LANGUAGES . 'english/YourTemp/wp_meta_tags.php');
function curPageURL() {
$pageURL = $_SERVER["REQUEST_URI"];
return $pageURL;
}
$wpPageBase = curPageURL();
I have the /blogAddress/whatever/ So now we can see the address that is being generated with the
PHP Code:
echo strtoupper($wpPageBase);
and even copy and paste if need be. This will print out somewhere in the header on the blogs page.
From there you would create your meta defines in languages/english/yourtemp/wp_meta_tags.php with the specific /BLOGADDRESS/WHATEVER/. Then spell out your metas.
I am using the strtoupper because we Like to Cap Every First Letter. That would make defining customs even tougher!
I would be very interested to see someone take what I've done and feed it right from the DB using the Another Wordpress Meta Plugin. This lets you create custom meta info for posts, pages. . . from within the WP admin when creating such content.
So that info all gets stored in the WP DB. I'm sure it wouldn't take much to get it really groovin'. I'm on my way out at the moment and then gettin busy with affiliates, but I think I might go DB with this next!
Bookmarks