[Resolved] Display heading based on archive page URL in Archive page after search
This support ticket is created 2 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Created an archive page which contains search filter (Uploaded Image : Archive URL page - One).
Page link : hidden link
Heading (H1) of an archive page should be changed based on the URL parameter. As you know, the URL parameter changes based on the search filter selection (Uploaded Image : Archive URL page - Two)
1. Display 'Room for rent in Bangalore' as archive page heading when the the URL parameter contains 'bangalore'.
2. Display 'Room for rent in Chennai' as archive page heading when the the URL parameter contains 'chennai'.
3. Display 'Room for rent in Hyderabad' as archive page heading when the the URL parameter contains 'hyderabad'.
4. Display 'Room for rent' as archive page heading when the URL parameter does not contain 'bangalore' or 'chennai' or 'hyderabad'.
Example URL parameter : hidden link
Read all the courses related to conditional block but do not get to the point.
If you are using the Conditional Block then you'll need to set up the condition without the param attribute, and then switch to the advanced editor to manually insert the param attribute.
It should be clear from these two screenshots what is involved.