The support forums have a new home! Please visit All in One SEO Pack's new residence at Semper Plugins to purchase a support plan.
Please consider registering
I'm listing jobs from a database based on the user's form input of either city & state or zip. What I would like to do is dynamically generate the page title and description using PHP variables based on the user's input. The form will be submitted through a a get statement ( for instance: $_GET['city'] ) and I'd like to insert whatever variables they enter into the title and description. I am only doing this for one page on my site.
For instance, if they are searching for jobs in Memphis, TN I would like the page title to be:
"Jobs Memphis, TN | Memphis, TN Job Search "
….and description to be:
"Search our Jobs database for jobs in Memphis, TN and areas within 50 miles of Memphis, TN"
This is simple outside of Wordpress – just put <? echo "<title>Jobs " . $city . "," . $state . "</title>"; // something to that effect – in the head after receiving the $_GET variables.
What would be the best way to accomplish this on one single Wordpress page using All In One SEO?
The url is http://www.bigrigdriving.com/truck-driving-jobs but the form isn't setup yet and I don't think visiting the site will help with figuring this out anyhow :-)
Thanks so much in advance!
June 8, 2009
June 8, 2009
http://codex.wordpress.org/Plugin_API explains how to use hooks in WordPress.
Ok, well I can see that apparently you're not about to really help anyone out unless they're paying you - even for 5 minutes – so for those who are interested I solved the problem by disabling the AIOSEO plugin for that particular page and used a custom header file to collect the variables and echo out the title and description. Problem solved.
June 8, 2009
Ok, well I can see that apparently you're not about to really help anyone out unless they're paying you
The hundreds of people I've helped (for free) will disagree with you. I showed you the hooks needed, then as requested, showed you the documentation on how to use them (all for free, without asking for payment). I'm not sure what else you're wanting, short of me writing your code for you.
Most Users Ever Online: 259
Currently Browsing this Page:
Michael Torbert: 2
Guest Posters: 1561
Newest Members: Nina Gerrero, Yuqian (Dawa) Liu
Administrators: WordPress Professional (478), hallsofmontezuma (202), onefinejay (10), stevemortiboy (4)