- This topic has 2 replies, 2 voices, and was last updated 8 years, 6 months ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
How do I capture and display a variable from a query string in the page title and text of a page?
suppose I want to capture a city name passed through the URL.
If I am using permalinks like this:
1) How should I append the city name to the page URL?
2) What will I need to capture that variable?
2-A) Will I need to "register" that variable? If so, how?
3) what will I need to display that variable in the title and in the body of the text?
4) I won't be writing this variable to a database - just displaying it when the page is called. Are there any special security steps I need to take?
Thanks in advance.
This is well beyond the scope of the StudioPress forums. You'd be better off asking this on something like Stack Overflow.
My concern is that there would be a "wordpress way" to do it and a seperate built-in "genesis way" to do it.
© 2023 WPEngine, Inc.