The code seems incomplete. Maybe the problem is simply that you define $id but then try to use $user_id? Also, I think id is a protected variable, so maybe use my_id instead.
Try this:
www.mysite.com/test?my_id=123
$user_id = $_REQUEST['my_id'];
$camp_link = get_site_url()."/campaign-detail/?id=".$user_id;
echo "<p class="campaign_store_name"><a href="".$camp_link."">".$camp_title."</a></p>";
$arform_id = Get_ARFORM_ID_using_slug($camp_link);
Related Posts:
- Why ids in urls don’t work but slugs do?
- How does WordPress generate URL slugs?
- Add menu and submenu in admin with a URL instead of slug?
- Get taxonomy slug from url
- Best way of removing emoji support from url / slug only
- Allow UTF-8 characters in the user slug part of URL
- How can I get the page url slug when ‘post_name’ returns an id?
- Easiest way to simulate WordPress’s URL resolution to retrieve post ID, etc?
- wp_insert_post – How do I prevent incremental numbers on child pages?
- How do I link to a blog not set as the homepage?
- Allow Chinese character on post URL slug
- How to edit URL Slug?
- How can I change a media attachment URL/slug, so that I can use that slug for a page?
- Can anybody provide me with a function to generate slugs?
- Site transferred to new server produces 404s
- Thousands of unwanted URLs/pages with “0” in slug created
- Too many redirects (ERR_TOO_MANY_REDIRECTS) only on one page
- How to remove % character from url
- Can non-latin characters appear in slugs?
- Allow duplicate slugs for pages and posts
- Avoiding the -2 in slugs
- mysterious issue with stop words in urls not working – how can I restore multiple url access?
- How to create URL for Pages/Posts
- Modify WordPress to not replace + (plus) characters from URLs?
- Why “?v=hash” is added to my URLs? [closed]
- Detecting a WordPress URL without doing a full HTTP GET?
- How to prevent apostrophes and quotes from appearing in permalinks?
- Run WordPress frontend and backend in different domains
- How to create non-unique sub-category slugs?
- Limiting the number of words or characters in the slug/permalink
- Dynamic URL generates dynamic content
- Pages redirected to attachment post
- How do I display Youtube/Vimeo video ID on custom post type when user enters it in custom meta box?
- Password protected page Hash url
- Which of WordPress’s .php files need to be directly accessible via HTTP?
- How do I override the emoji url?
- Site broken after using URL Change in Admin
- Custom Post type permalink structure with custom_post_id
- Setting a url for a page
- How to allow — in category name
- Request parameters in $_GET do not match URL called
- WordPress custom search url
- The requested URL was not found only on localhost
- How to add a post slug to a url?
- Preserve old website URL structure after migrating to WordPress
- Problem with utf8 link
- remove query string from homepage url
- Twitter shortlink 404 not found [closed]
- Remove Trailing Slash from Category Base and Tag Base
- WP URL /icons returns 403 forbidden error
- Get root folder without domain
- wordpress.com website url structure [closed]
- HTTP 403 Error when passing parameters to URL
- WordPress get parameter ‘unapproved’ and ‘moderation-hash’
- How to remove my website link when adding a link?
- Misentered the site address url. How to recover? [closed]
- How to make pages slug have priority over any category
- Website Address Keep redirect to website after migration attempt
- Random string added end of the url blog page wordpress [closed]
- Custom HTML title based on URL parameter
- Blog post – single.php url
- WordPress File URL Path Incorrect
- Adding more onto an esc_url [closed]
- Need to check if user is on a particular page
- How can I insert a dynamic URL in my email template?
- How to set path to the image instead of alt in media.php?
- Block registration by URL referrer?
- Localhost access after changing URL
- Make unique url to unlock a post
- Changing url of author page
- Changing siteurl in the database not working
- Allow two posts (from different categories) to have the same slug
- Why my WordPress website homepage automatically adding cs_preview=true query parameter to the url?
- URL redirects of webpage
- What is this extension on mu web URL?? It leads to a blank page. what is causing it/?
- Incorrect page shown
- How to assign a default/priority taxonomy to be shown in url in case two taxonomy items are selected
- URL Structure for translated articles
- Custome home page url
- Change the full slug for a specific category?
- Inject dynamic strings in urls
- Why is my WordPress URL shortened
- Pass post title as URL parameter
- List sub pages with custom field content converting image ID to URL
- How do I make images open in a new tab by default?
- How to pass parameters thru URL?
- Post as frontpage – avoid duplicate content
- Domain name to a page
- Text widget form and URL variables
- Making a site URL
- Options and template changes not updating
- Append custom parameter to taxonomy/term URI
- Change URL to filter posts
- 404 error on cyrillic url
- Accidentally changed the url
- How to write url to display all posts of certain type and taxonomy with given term_id
- Where can I add list of external URL for WP ADD link tool?
- WordPress page URL: Get rid of /wp-content/… part from URL
- Conditional Content Linked to Cookie Value Only Shows on 2nd Page Load
- Custom plugin with dynamic child pages listing database records