It would be best to include this in your link. For example, the link to your form could be https://domains.com/form/?product=20
. That way the product ID will be available as as GET parameter, eg $_GET['product']
.
Related Posts:
- Determine if page is the Posts Page
- How to get ‘post_content’ without stripping tags?
- Post featured image column on admin post list page
- display all posts in wordpress admin
- Search Custom Post Type Pages and Custom Fields in 2 Dropdowns?
- When and Where is `global $post` Set and Available?
- Create an “All Posts” or “Archives” Page with WordPress 3.0?
- How to Sort Custom columns in admin
- Shortcode Not displayed at the Right Place [duplicate]
- Post visibility on the basis of roles
- List only child categories a post is in, of a specific parent category
- Unattaching images from a post
- Is it possible to add a first and latest posts link?
- How to change post status from publish to draft using hook in wordpress?
- How to output comments number of a post per day?
- wp_list_categories link to first post of category instead of calling taxonomy template
- Alternate custom content in the loop
- Auto Refresh Post List after X seconds
- How to show video from specific category on sidebar?
- How only display all post related to category
- Display posts with comments closed, with pagination?
- How can I add a meta-box to the posts editor containing all items of a custom taxonomy as checkbox?
- Add category to all post by using sql query?
- can’t use the page_test method to check pagination
- post re-order on my site
- Only display posts after current date
- What is the Better way to manage posts in WordPress?
- Invisible spam post in backend
- Private Posts/Pages & Search
- Update post status from “publish” to “trash” for half of posts
- Can I create a not clickable post?
- What is the standard featured image size?
- Allow multiple contributors to one post
- How to check a post exist when the permalink has post id in it?
- How to attach an image to a post through Java
- Post body text occupying featured image space before it loads
- User levels and post visibility
- Multi row post list
- Hook in to add new post link wp admin?
- transition_post_status hook doesn’t have any POST data when publish with Gutenberg [closed]
- How do I insert a post with custom post type and relate it to a custom taxonomy?
- Dynamically switch template on click
- add to end of post in the loop with plugin
- $post->post_type not working
- Tell WP to use a specific template file in posts
- Create a list of posts with topic headdings
- Add field to user meta table in database when link is clicked
- How to get post content from an array of ids?
- Hide custom metabox value from custom fields
- See if a post has a specified tag
- tribe_get_start_time displays the current date and time on other post types than tribe_events
- How to get the latest URL of my blog?
- Not all posts showing in query
- Template for regular posts (no custom post types)
- WordPress query portfolio posts
- Rand post related question
- Hide parts of the post content after typing it’s name or searching it by category
- search content of pages and list in wp-admin
- SQL Bulk Move old posts by one author to another category
- load more posts by category
- Import custom database into wp and keep the post id
- Changing permalink of WordPress
- Rest API Paginate until all posts are imported
- How to show multiple posts thumbnail, title and date in widget
- Remove all external links from posts
- Only the most recent post is showing on my category page (working on localhost, not live site)
- Blog Posts – Scroll to view more
- After updating to 5.9, when the posts page is loaded in the browser it uses wp-includes/template-canvas.php?
- Show only posts with titles/permalinks that do not contain certain words
- Manipulated offset and pagination, can’t display last post anymore
- Query to fetch custom taxonomy along with post title
- Change of author not updating
- Mysql update menu_order problem
- Single post shows post three times
- Blog Page doesn’t show summary but full content
- Change WordPress names duplicate titles (url)
- Changing a users posts to drafts upon role change
- Show 5 posts and than 3 posts offset with pagination
- My posts page is missing the page title
- Blog Post slider not working
- Alternative content between posts no repetition
- Start loop from specific post ID
- Connection dropped due to file size
- How to Get Position of a Post from a category and tag
- Custom author search
- WordPress template next_prev
- Remove All in One Seo from Posts for Contributors
- Add row after three columns
- My blog “page” used to show a list of posts, but now it’s just showing the page content?
- Grab next post title in archive page
- How to store post rating system data post independent?
- unused post IDs
- get_post_meta property of non object
- Combining multiple conditional statements [closed]
- First post in loop displays twice
- custom post type single page template not working
- WordPress posts [closed]
- Post UI Tabs plugin double fade effect
- Export Posts Without Categories In An XML File
- How to use shortcode to get the second to newest post?