I am trying to: get a URL parameter passed from a URL to a view. This is the URL - hidden link
Attached is how I have my query set up based on what I think it needs to look like.
Currently I have a page that list all the countries I need - hidden link. But I am accomplishing this by a bunch of different views, see attached for a sample.
What I want is to be able to dynamically create a page that shows listings for a single country. So the page would show an intro paragraph and single country, like the attached that just shows Australia.
In a perfect flow, I'd actually be able to pass the URL variable from my Gravity Form based on a dropdown selection.
I visited this URL:
I expected to see: I want this page, if the country parameter in the URL is "au" to only show records where the country = Australia or au in the list.
Instead, I got: all my records, as seen here - hidden link
Hello. Thank you for contacting the Toolset support.
Well - I checked the following URL and I do not see any relation of country with any of the item.
=> hidden link
I can better tell you once I review your current setup and then I can advise you what will be steps you need to follow.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
I checked your setup and on this page:
=> hidden link
I see you added veiw "Provider - International" which is filter by country.
Now, I set above view filter by URL param and with "AU" and it works find and results filtered correctly.
The thing is that, your country field is set to hold country code (2 characters) rather full country so there is no automatic way to convert "AU" to "Australia" or views will not work like this because it will match "au" so it will give you results with "Australia" as well as "Auckland".
If you want to match whole country name then you need to add full country name.
Thank you so much. I see now. I also created a new view so that I can have a paragraph above that describes the page and includes their particular country in the text and as a headline for the list below. See my updated page - hidden link. It does mean I'll need to go through the records and put in the full country name. I don't think I'll worry about changing the US though because we have nearly 400 of those. Guess I could change it via a database query.