save the id in a variable like this way
$post_id = get_the_ID();
now you can use this $post_id variable in the hidden field.
Related Posts:
- Alter query on edit.php
- Exclude posts from homepage having a specified tag
- Displaying the last post on static homepage
- Counting Search results, and displaying the offset per page
- WordPress sorting posts by date and title using a dropdown
- Is there anyway I can call the year once?
- Automatically create a loop for post ID
- How to modify this function to exclude also the post belonging to a specific category?
- Disable Attachment Pages Completely
- Inject post (from specific category) between posts in Loop
- Remove option to allow trackbacks/pingbacks from post page options
- How to get year, month and hour in WordPress?
- How to order posts by modified date without using ‘query_posts’?
- Getting movie and serial on actor page
- Two posts in same div – WP loop
- Handling an Ajax form submit
- New Plugin Review
- Print number of post (in reverse)
- Count number of published posts by type
- Function to show random posts from a category
- Automatically generate Post/Page from searched Database item?
- Insert all post IDs in new database table
- Get taxonomy terms only of the WP_Query current posts
- How to get 2 or multiple custom post types in wordpress functions.php
- Displaying a button on each post
- Hide post if matches current month and year
- Creating bulk posts with Youtube videos
- How Display Posts on category
- Getting a specific post values to another div or modal
- Sort query_posts for Parent Pages to menue order or the count?
- Unreadable pagination
- how do I get a specific post from a post with a subcategory in WP
- Automatically create child pages and grandchild pages when saving a (parent) page
- Open post-content in archive page in a Modal box with bootstrap
- remove post that has no content
- How to show only subcategories in parent category not parent category?
- 404 error when I acess the second page of post-type
- WP Insert Post and then go to post
- How to get post ID in a Page?
- Copy taxonomy terms from one post to another programmatically
- Get latest post from all categories except one
- Parse error: syntax error, unexpected end of file
- Automatically add images to a menu
- Load Posts on Click via Ajax into a DIV
- How to catch wordpress post ID when it’s published
- Store metakey value as an array
- Only show first image in foreach loop
- WordPress upload file size error even after raising php limits
- create front-end users post list by specific category
- Posts are not looping through correctly
- show recent posts php code error?
- Error display post thumbnails for previous and next post
- Post to WordPress from another Server via PHP
- form $_post action value gets truncated after it passes through two forms
- How to echo the_title from an array of posts?
- Limit the number of child pages
- Prevent post from being published and show error
- Wp Query : Order by distance lat,lon
- remove specificly the last tag in all posts
- Add posts to custom table in database instead of wp_posts
- get value from get_post_meta then reuse it in another get_post_meta
- How to show categories and date on posts
- WordPress Post Block Element not properly parsed with the_content filter
- Build A Custom SQL Query for WordPress Search
- WordPress Custom Form – Getting Query Vars, Weird Glitch?
- How to Send Pingbacks for all Posts in WordPress?
- Display articles with a different template in the home page | Solved |
- How can I check if a post with a particular slug or title exists?
- Query on a repeater date (acf)
- Trying to get post ID outside loop on blog page
- Trying to show the category of a post in the post display
- Split post or page content in two or more columns
- Enqueue script only on child pages of custom post types
- Attach and retrive multiple pdf files to post or page
- Check the database for a postmeta field
- Send POST request to Flask app from functions.php file
- Get list of posts from attachment
- Send Notification after post published was working but stopped after the last WP update
- How to insert text into post based on category – via single.php file
- When working with a post, almost all wp_postmeta are deleted
- Displaying POST content with HTML tags and all
- Generate random access token to a post page
- Pagination in WP Queries
- Add div after every 4 posts then every 2 posts for a responsive loop
- Only display notification on single post
- Get posts associated with media attachment
- Can’t put a hyperlink on Featured Post’s Image
- Passed variable gets undefined variable error on insert on next page
- WordPress get_post_meta issue
- Why does WP_Query show only the same post even with different categories and endwhile?
- Display pages from specific page template
- Custom query_posts() parameter
- Does wp_query and query_posts affect website performance? [duplicate]
- Query posts by custom fields (object post)
- How to display the date under the post title?
- Excerpt all post content Content Same Size without word cutting off
- Add multiple HTML attributes to an Elementor button
- /page/2/ redirect to 404
- How to use a conditional statement in a post loop but not count towards the “posts_per_page” if false
- Bulk data save in custom table