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
- Is it possible to use the same slug structure for a taxonomy and for some pages?
- `query_var` values empty in theme file after `add_rewrite_rule` redirection
- How do you create a “virtual” page in WordPress
- remove “index.php” from permalinks
- Using the Rewrite API to Construct a RESTful URL
- Change the “page” slug in pagination
- Understanding add_rewrite_rule
- web.config conflict on IIS
- Masking wp-content/themes/name/images to just images directory using htaccess
- Rewrite rules not working in WordPress
- Dynamic Endpoints
- How to add custom rewrite rule to .htaccess?
- How do I remove a rewrite rule?
- Problem with add_rewrite_rule and pagination (paged and page query_vars)
- generate_rewrite_rules (action) vs add_rewrite_rule (function): which one is preferred?
- add_rewrite_rule: $matches var not replaced by captured value
- How-to add rewrite rules to point the uploads folder to a subdomain
- add_rewrite_rule not loading correct page nor getting variables
- Preserving $_GET parameter while using custom Rewrite Rule
- Disable wordpress pagination URL rewrite for specific page
- How to use Post Custom Metadata in Post Titles and Post Permalinks
- Rewrite url for custom post type
- add_query_vars and add_rewrite_rules
- rewrite_rule() not preserving the query string
- Need help with rewrite_rules_array
- SEO Friendly URLs for my plugin categories
- How do I add a add_rewrite_rule without it redirecting?
- Taxonomy rewrite question
- add_rewrite_rule not working for page var
- Why does wordpress still strip my query var?
- When to call `add_rewrite_rule` for safety
- WordPress URL rewrite regex
- Custom rewrite rules are sending everything to index.php
- Getting add_rewrite_rule and add_rewrite_tag to work
- Blog installed in subdirectory but need to create pages in root. How to use permalinks?
- Sub domain redirection to taxonomy
- WordPress Network on IIS7/SQL Server – Rewrite Issues
- Custom comments
- Rewrite rules goes away
- Rewrite Rule for Custom Page with Query Vars in URL
- WordPress keeps writing rewrite rules to .htaccess
- Adding the amp url prefix to the beginning
- WordPress Rewrite
- add_rewrite_rule again
- Dynamic URL, not a physical page within the database
- Rewrite Rule for Post “Subpage”, with pagination
- Tricky URL rewrite with custom values in url
- WP Rewrite the last two parts of the URL
- Rewrite loading custom template file but is_home() returns true, and there’s no 404
- Rewrite rule for admin-ajax.php
- Add rewrite rule to call front-page.php?
- Nginx rewrite rule conflict with WordPress permalinks rule
- Add a query string to ALL links on site
- How make a multi language routes, with rewrite rules or rewrite endpoints?
- Add rewrite rule for rewrite endpoint
- Custom rewrite rule for backend/admin?
- Having trouble with using add_rewrite_rule and pagination
- Permalinks, Rewrites, Get Variables, Oh My!
- Access $_POST data after redirect
- How to have multiple rewrite endpoints in the same URL?
- Rewriting rules: difference between ‘init’, ‘rewrite_rules_array’, ‘generate_rewrite_rules’?
- Change Query String to pretty permalink
- add_rewrite_rule is not taking effect in WordPress? .htaccess file doesn’t update