dyanmic landing page template based on custom field
-
Okay, I’ve read a lot of posts about using custom fields that gets close to this, but not quite. Unless I missed something …
I want to have a custom field with the key “landingtag”. The value could be anything, but will always correspond to a post tag (not sure if that makes a difference).
Then in my new page template, below the content output for that page, I want to list related posts that belong to that page based on the key value defined from “landingtag”.
Bottom line, by simply using this new page template and defining “landingtag”, a query will pull all the posts from the variable that is landingpage value. That’s the key, in the query I need the posts to get to be a variable, thus making the whole process dynamic. One template, many possible landing pages.
Thanks for any help or direction.
Bill
- The topic ‘dyanmic landing page template based on custom field’ is closed to new replies.