In the example you link this is how the parameter is added:
add_query_arg( 'sort', $my_parameter, $link );
However, in your example you missed the link parameter.
Does it work if you replace it with:
$link = add_query_arg( 'tubepress_video', $my_parameter, $link );
?
Related Posts:
- Why does wordpress still strip my query var?
- Hijacking the URL for filtering
- Dynamically redirect page based on URL?
- Change Query String to pretty permalink
- Nginx rewrite rules
- WordPress Redirects When a Query String Contains a Number
- How does WordPress determine if a paged query var is too high?
- Generating a Rewrite Rule for sSecific Post-Requests from a Submitted Form?
- Retrieve query var within functions.php
- Add extra optional text to permalink e.g. “-with-*”
- get variable from url?
- Rewrite URL query string for all pages
- Need help with custom rewrite rule
- Using add_rewrite_tag to create urls for page sections
- Rewrite Slug for CPT Archive Pages to Plural Name of Slug
- Change author base slug for different roles
- How to add custom rewrite rule to .htaccess?
- Problem with add_rewrite_rule and pagination (paged and page query_vars)
- Custom Permalinks for Blog Posts Only
- How to show the same content on multiple URLs?
- Using a page template without a page
- How to seamlessly redirect between different archive and singular slugs?
- Overwrite rewrite-slug of built in post-type ‘post’
- When to call `add_rewrite_rule` for safety
- URL rewrites and pagination
- Rewrite Rule for Post “Subpage”, with pagination
- unexpected problem in url rewrite
- Need to make a php file inside theme accessible via url
- Remove child category from URL
- Rewrite loading custom template file but is_home() returns true, and there’s no 404
- Rewrite rule for admin-ajax.php
- Change WordPress comments url / word
- Cache issues with redis and nginx
- Custom search page and search by title, content and tag
- WordPress removes spaces in URL on pagination
- Adding more pages to author pages
- How to check current URL for endpoint in a template file?
- Add query string to url and display it as normal url part /folder/
- Is it possible to remove feeds from rewrites?
- Flush Rewrite Rules on init or rest_api_init?
- WordPress .htaccess – route other URLs to another app
- How to properly rewrite url by custom var
- Query total number of posts
- How to display posts under a specific subcategory of a given category
- How to use URL structure to call PHP code
- Can I have /blog and /foo and /bar all point to the same blog?
- add_rewrite_rule is redirecting instead of rewriting url
- Add language prefix to permalinks
- Filter posts in category archive page by year using a dropdown
- Attachment page gives 404 if user not logged
- Rewrites: .htaccess or wp_rewrite for bulk 301 changes?
- How to change the Author Slug from Username to Nickname and deal with Special Characters
- How to pass url as a parameter in a add_rewrite_rule
- Per Page Permalink Structure for Page Post Type
- Customise particular RSS permalink
- RSS feed rewrite matching wrong rule
- Removing “www” from a site URL
- Replace “http://localhost:8888/” by website URL in WordPress
- Custom rewrite rule not working
- How to use apply_filters?
- Thousands of 404 errors on old posts due to embedded links
- Creating a folder structure
- How to Detect That WP is Using Mod Rewrite or $_GET variables?
- How can I allow trailing slashes on some URLs without a redirect, but not on others?
- Can’t use a specific custom URL (slug)?
- How do I get posts to appear at mydomain.com/blog?
- rewrite rules and capturing
- Adding the amp url prefix to the beginning
- Redirect to new domain that serves new and different content
- How to change search page url so that it still returns a page when there’s no search query specified?
- Custom taxonomy named ‘tag’ return 404 page
- How to redirect to a login virtual page?
- Multiple permalink with and without category for same post
- Custom Params in URL
- Implementing geotargeting while using a single database
- Url rewrite, add rule, redirect as POST request?
- Broken page redirect
- Add query arg for pretty permalinks in wordpress way
- Homepage cannot be found
- How to add 2 variable rewrite rule?
- Get custom posts by segment of the URL
- Add ReWrite from Old Pages to WordPress (remove .php)
- Remove trailing slash
- add_rewrite Rule
- How to show my application as referral in WordPress Stats
- Fully mask *all* traces of WordPress installation subdirectory?
- Appending parameters to WordPress query string in backend
- rewrite rule of post when accessed from archives pages
- Redirect A URL Pattern In WordPress Using .htaccess
- Help to cleanup this code
- Rewrite Question
- How to make a custom route with any-string-part/number-part pointing to an existing page?
- username in rewritten URL, howto use it in a template
- Rewwrite rule for mapping plugin static file
- Listing Authors – URL Formats [duplicate]
- Add rewrite endpoint and .htaccess
- Wrong rewrite rules
- How to make custom WordPress page deliver search results
- URI rewriting: handling one page
- Problems Implementing Non-WordPress Rewrite Rules