Per the OP’s answer within their question:
With your help and some Googling, I put together a shortcode that returns the value of any url parameter. Here it is:
//THIS IS A CUSTOM SHORTCODE TO DISPLAY A PARAMETER FROM THE URL
function URLParam( $atts ) {
extract( shortcode_atts( array(
'param' => 'param',
), $atts ) );
return $_GET[$param];
}
add_shortcode('URLParam', 'URLParam');
I use the shortcode like this to get the trip_type
from my URL:
[URLParam param='trip_type']
Related Posts:
- How to use query string in URL to display content on the wordpress page
- Why “?v=hash” is added to my URLs? [closed]
- Pulling a parameter out of the URL of a WP link without “?” or being sent to a different page
- urlencode query string in gravity forms confirmation redirect
- Dynamically change page title from URL param
- how to make URL link query string
- 404 error when passing “cat” parameter to URL
- How to add URL-Parameter for Javascript Widgets?
- HTTP 403 Error when passing parameters to URL
- WordPress get parameter ‘unapproved’ and ‘moderation-hash’
- How to parse a custom url (within WP site) and obtain params passed to that URL
- Passing values through url for checkbox fields with same name to get?
- Custom HTML title based on URL parameter
- WordPress Subcategory Creates 2 urls for same page (serious issue)
- How to get a page url segment on wordpress?
- Different url to same page (with dynamic content)
- Add a paramter to page url
- Why “?v=hash” is added to my URLs? [closed]
- Add more than one query parameter onto wordpress url
- Set A Cookie To URL Parameter, Pass Cookie From Page To Page To Alter Post
- Use URL parameter to create dynamic content
- Pass post title as URL parameter
- How to pass parameters thru URL?
- Duplicate pages with ?s parameter
- help me remove this additional parameter in url
- How to deal with WordPress on localhost
- Strategy for handling hierarchical pages with empty parent content
- How to remove /index.php/ from URL’s
- Force the Website URL to Include “www” and to be Upper Case?
- How to remove “http://” When Echoing URL?
- WordPress and $_GET Params
- Why WP encodes UNICODE (UTF8) containing urls? Any drawbacks of UNICODE url?
- Unable to load static front page on home url
- Force home page to be https?
- How do I amend the fixed “author” part in the URL?
- get_site_url is not returning anything?
- Check what is at URI (post, archive, etc…)
- Add custom URLs to WordPress’s XML sitemap
- How to get “extended” path info from URL in a plugin
- Wp Login redirect strips parameters from url
- Use image url with add_image_size
- Special domain for a page
- How to delete unused URL?
- Pages other than Home page not displayed even when URL is good
- How to server wordpress from SSL and non-SSL URLs
- Author Nickname URL Friendly
- Should I set the html base url when using wordpress?
- How do I test my localhost WordPress project with VirtualBoxVM?
- How do I link to a blog not set as the homepage?
- Updating URLs in many posts
- How to edit URL Slug?
- Save URL into database
- Imported 10 000+ posts, custom field showing link not displayed
- rewrite taxonomy-{taxonomy}-{term}.php terms
- Multiple URLs with Numbers
- previous_posts_link and next_posts_link, how to return the next/previous post’s title as the url
- hijacking home_url for root relative paths
- Get Top parent url
- How to properly print a 404 error without redirecton? (i.e. keeping the current URL)
- hide wp-content from urls
- Is there RELATIVE_PATH, like ABSPATH
- Changing the website URL to the root folder
- Open editor post in a popup
- Organizing the Navigation Menu
- My #id is not showing in the url when the user clicks on the anchor tag
- What php gets called for home_url/somepage URL?
- How to create custom search result page with custom URL parameters for custom post type?
- Use wp_redirect to add a parameter
- Extracting a variable from a permalink
- After changing the site root, how to reflect this for wp-admin too?
- How can I prepopulate the URL address for the add media button
- How to show Specific URL of WordPress on Any one Specific IP only?
- How rewriting a url to make it SEO friendly
- How to make a seo friendly URL of 2 different pages with same words
- Mapping a domain name
- No https in url when writing links like:
- How to construct a dynamic rewrite rule for child pages that passes more than one query var
- WordPress inserting ?q= in URLs
- Set URL Parameter Post Layout As Default
- Embed ACF URL Field in WP title field
- Getting Turkish alphabet characters in the URL field in webbrowser
- How to properly setup MAMP and XIP
- URLs fine in database but wrong in output
- Cannot access to dashboard on localhost
- My website has some Crawling Errors?
- How can I modify the ‘Insert/edit link’ option to offer root-relative urls?
- How to set global variable in functions.php
- Why am I seeing ‘yes’ and ‘no’ in URLs crawled by Xenu?
- bloginfo no show the right path
- URL with without www shows just a blank page
- How to create custom authors links
- Using functions concatenated with strings inside a variable
- How to generate external url in WordPress
- apply styling only to a specific url
- append $_GET parameters to post
- How can I implement an Article Wizard for non-existing URLs? [closed]
- WordPress rewrites my link with custom URL scheme to http(s)
- Show page name after home url
- Display custom data based on URL slug
- how to add param string after website url in wordpress?