How To Get A Variable
-
Hi guys,
We have a page on one of our websites, which is dynamic and populated via API calls to an external database.So in wordpress the PAGE is ‘tutor profile’, but if you go to tutor_profile/12345 the API call will obtain all information for ID 12345 and populated the page contents.
So in wordpress, there is only ONE page (tutor profile) using a page template called tutor_profile. The page doesnt have any custom fields, but on the front end, there are many many pages, which populate text from the API.
I can totally understand why, but every single tutor profile page has duplicate title and descriptions.
Can anyone think of a way I could make these unique. I can see for example on our page template we are using variables such as $first_name, and I have tried referencing these in the TITLE using cf_first_name but it doesnt work…I guess because first_name isnt an actual custom field…its a variable in the template.
Can anyone think of a way I could display variables which are referenced in the page template, and bring them into the title and description?
Many thanks.
The page I need help with: [log in to see the link]
- The topic ‘How To Get A Variable’ is closed to new replies.