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?
- Problem with guids and absolute links
- Rewrite rule page url with category
- How to remove “http://” When Echoing URL?
- WPML Get url without outputting
- Weird: /?name in URL leads to blog
- I am Looking to append URL Parameter to all URLs
- Is dynamic URL possible in WordPress
- Accessing the Current URL in a Text Widget for a Facebook Share Button?
- Is ‘name’ a reserved word in URL’s?
- Does WordPress automatically redirect url without parent slug?
- How to create a custom page base on URL for WordPress?
- How to make menu items active based on hash
- Use image url with add_image_size
- Multiple domain names for one site
- How to always rewrite author archive page URL even if the author does not have a post
- Special domain for a page
- Custom page slug without creating a WP page
- How to server wordpress from SSL and non-SSL URLs
- Author Nickname URL Friendly
- Moving a test WP site to live
- How do I write the link from front-page.php to home.php?
- Should I set the html base url when using wordpress?
- How do I test my localhost WordPress project with VirtualBoxVM?
- Updating URLs in many posts
- Remove the parent slug in a CPT URL
- Save URL into database
- Imported 10 000+ posts, custom field showing link not displayed
- How to change the Author Slug from Username to Nickname and deal with Special Characters
- Multiple URLs with Numbers
- How to add URL-Parameter for Javascript Widgets?
- 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 get a post’s content? [closed]
- 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
- retrieve permalinks of posts inside custom post type by using post ID
- 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?
- Bulk append URL (add word to slug)
- 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 to make a seo friendly URL of 2 different pages with same words
- Get nice name of category from slug (remove dashes of category)
- Mapping a domain name
- No https in url when writing links like:
- Why “?v=hash” is added to my URLs? [closed]
- WordPress inserting ?q= in URLs
- Set A Cookie To URL Parameter, Pass Cookie From Page To Page To Alter Post
- 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?
- Remove Page Slug from URL
- 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
- WordPress pagination URL
- How to generate external url in WordPress
- apply styling only to a specific url
- Fetching Video From YouTube Automatically [closed]
- How can I implement an Article Wizard for non-existing URLs? [closed]
- What purpose does /embed/ URL have and how to avoid SEO problems?