You should use get_query_var
rather than $_GET
. But you will need to register you custom variables, for instance:
add_filter('query_vars', 'register_my_query_vars' );
function register_my_query_vars( $qvars ){
//Add these query variables
$qvars[] = 'video_id';
$qvars[] = 'vide_title';
$qvars[] = 'venue_src';
return $qvars;
}
Then you should be able to use get_query_var('venue_id')
.
Related Posts:
- Rewrite URLs – Custom Post Type – Post Slug, Taxonamy Slug
- How to change an existing wordpress page rewrite rule?
- How to create custom URL routes?
- Rewrite Rules for Multiple (more than 2) Taxonomies
- How to change default page slug?
- Mod_rewrite delete parameter in 301 Redirect
- Need to make a php file inside theme accessible via url
- Evaluating a external rewrite rule before internal wordpress rewrite rule
- Rewrite rule to load images from production does nothing
- Custom query_vars and parse_request on wp-admin
- Rewrite Rules Are Redirecting and Not Passing VARs
- WordPress rewrite rules don’t need ^?
- How to add custom variable in url without redirect?
- Custom rewrite not working
- WP is ignoring .htaccess rewritten URL
- Rewrite wp-login.php URLS to static pages?
- Rewrite custom post type URL parameters
- URL Rewriting for PHP script on an image URL
- Change pagination url format
- Rewriting “pretty” blog category URL with htaccess / add_rewrite_rule() causes 404 page
- Custom Rewrite rule to captured post (rewrite rule to rewrite rule)
- Help with rewrite rules for two post types
- Enpoint Not Found in Rewrite Tag Permalink
- URL rewriting with custom user meta “/%shop_name%/gallery/%gallery%”
- Localize URL bases
- Get wordpress installation folder
- How can I create custom URL routes?
- WordPress Rewrite rule is not working
- How do I make WordPress revise an .htaccess file a certain way?
- wordpress path generation from rewrite rule
- add_rewrite_rule() issue with parent/child/child page
- Pretty URL via Rewrite
- URL Rewrite for CPT single posts
- Custom Rewrite for Profiles
- Can’t get pretty permalinks to work without index.php
- Rewrite URLs in a Custom Post Type with Multiple Taxonomies
- add_rewrite_rule doesn’t work when trying to add a new parameter at the end of URL
- Dynamic Endpoints
- How to add custom rewrite rule to .htaccess?
- Problem with add_rewrite_rule and pagination (paged and page query_vars)
- Rewrite url for custom post type
- add_query_vars and add_rewrite_rules
- Need help with rewrite_rules_array
- Why does wordpress still strip my query var?
- When to call `add_rewrite_rule` for safety
- Sub domain redirection to taxonomy
- Rewrite rules goes away
- Rewrite Rule for Post “Subpage”, with pagination
- Rewrite loading custom template file but is_home() returns true, and there’s no 404
- Rewrite rule for admin-ajax.php
- WordPress rewrite rules for state and city
- add_rewrite_rule not working for language specific characters
- Custom rewrite rule
- Single Redirection Rule for Pages and Archive links
- Is it possible to remove feeds from rewrites?
- Flush Rewrite Rules on init or rest_api_init?
- Rewrite URL – insert custom variables as a directory path
- How to properly rewrite url by custom var
- Can’t add external rewrites
- WordPress Rewrites – How can I pass a variable to Custom Post Type?
- Monkey Man Rewrite Analyzer says my rule will trigger but it doesn’t [closed]
- Need to add rewrite rule that adds in additional information about the post to url
- add_rewrite_rule is redirecting instead of rewriting url
- Help with Rewrite Rule for Custom Post Type with Query String
- Create Dynamic SEO Friendly URL for Virtual Page
- add_rewrite_rule with query variables
- Rewrite rules automatically for pages using specific template
- How to remove specific category from URL in WordPress
- Custom permalink leads to index page
- How to pass url as a parameter in a add_rewrite_rule
- Per Page Permalink Structure for Page Post Type
- RSS feed rewrite matching wrong rule
- Rewrites rules disappear after a while
- Combine multiple CPT names to create valid permalinks
- WordPress simple Url Rewrite
- Rewriting in wordpress url
- Why is a rewrite rule in wordpress prevent pagination?
- Rewrite custom taxonomy slug – but only parent items
- How can I allow trailing slashes on some URLs without a redirect, but not on others?
- Can’t use a specific custom URL (slug)?
- Multiple Taxonomy Items for Separate URLs
- Rewrite WordPress Url from root to subfolder without moving files
- How to redirect to a login virtual page?
- How do I rewrite URL that has custom parameter
- Help adding custom url, rewrite_rules_array
- Rewrite rule for post as a child of a CPT
- Broken page redirect
- URL Rewrite and Archive Template Files – Post Type vs. Taxonomy
- add_rewrite Rule
- rewrite rule of post when accessed from archives pages
- Migration from old CMS to WordPress 301 redirection rules?
- How to make a custom route with any-string-part/number-part pointing to an existing page?
- Using add_rewrite_tag to create urls for page sections
- Help with url rewrite
- Add rewrite endpoint and .htaccess
- Programmatically add a custom url route “/category/index.json” to return a collection of posts in json
- Rewrite rule giving 404 error
- WordPress picks a wrong template if ?cat= is used as URL parameter
- WP-Include rewrite directory
- How to combine nearly identical custom rewrite rules for WordPress