I think your code should be changed to
<input type="hidden" name="item_name" value=<?php echo "'" . get_the_title( get_the_ID() ) . "'"; ?>>
<input type="hidden" name="item_number" value=<?php echo "'" . get_the_ID() . "'"; ?>>
Based off the first input where you have ” ‘ ” and the second one you’re using ” ” ” will just return the a string with “. get_the_ID() .”
Related Posts:
- How to fix ‘Notice: Undefined index:’ in PHP form action
- add_filter the_content str_replace after shortcode
- Genesis – Customize search form
- How to insert PHP code in a WordPress Post
- Inserting Gravity Form checkbox values into Advanced Custom Fields [closed]
- Has anyone tried putting PHP ActiveRecord on WordPress?
- Handling error states with admin_post
- Creating wordpress user registration form
- On update to 3.04 site started recording accents as “á” and “á”, what to do?
- submit the form to same page
- Implement a multi-value input field where the number of entries is not limited
- Ajax form submit within a Post Metabox
- How to create and work with custom data / tables (i.e., for arbitrary data)?
- Upload Image in a WordPress page using PHP
- woocommerce registration form with klaviyo(don’t work with current user)
- Custom Form Processing Issue
- My form action url is being prepended with a directory that does not exists
- Custom profile field with birthday. Troubles with
- WooCommerce/WordPress: how hide entire table form after submit (Admin Dashboard)?
- How to store data from multiple forms using ajax and php
- How to use $query->set with post__in?
- Ajax loaded form replaces form action with Ajax url
- prevent default not stopping page refresh. Passing form information to and from php with ajax in a wordpress site
- Custom search results page not working with empty search
- Post + form + action + results on the same page
- How to pre populate a form field with a link of a current user’s author profile?
- Why Won’t My Inputs in a form with a Get method work together?
- Input data from email form not going to JSON file
- How to get the value of input hidden html from text editor to custom page template?
- Contact form won’t submit
- wp_mail file attachment not being placed in upload folder?
- Search Query: how to construct a search string from two select elements?
- Databases – Submitting data from inputs to database [closed]
- How to show a ‘correct’ message after submit a form?
- db converts decimal number wrong
- WordPress admin-ajax.php 400 bad request
- Ajax contact form return 0
- “operation successful” message
- User register hook is not working in woocomerce register form
- Search WordPress using static html page
- How to put a form with php code into a variable or shortcode?
- How to send form data from WordPress (Meta Box) to an OData service?
- WordPress shortcode returns the data before
- Shortcode to embed Edit Account form not working
- Form Submission Not Working In Custom Theme
- Capture form data in one function and use it in another function (same file)
- Why does my user not get added to the database on custom registration?
- Submitting a form, using Ajax, to run a SQL Select query based on user input from the form
- How to add post meta in while loop?
- How to set cookies
- Simple php in wordpress widget [closed]
- Pass important values server-side when processing form
- WPDB secure custom form
- Adding attribute to the post.php form tag in wp-admin
- Make a page (url) not cacheable [closed]
- WordPressUser Submission Form
- Display multi-select box choices in a bullet list [closed]
- Testing a Form’s Zipcode Field with Regular Expressions to Determine WordPress Page Behaviour
- Using Ajax to submit a form, and run a SQL Select query based on user input from the form
- Cascading dropdown select search based on Parent Page & Child Page
- $_POST returning empty values
- How to send custom form submissions to WordPress Database?
- Custom PHP form needs refresh to load page correctly
- I want it to detect the duplicate comment and give a warning on the same page
- PHP multiple forms, same page, isset($_POST[]) not working?
- “Class Not Found” in HTML Form Target PHP File that contains the class
- Confuse between forms and tables
- Store user form submitted information in post type
- Implement jQuery Smart wizard
- How do I stop my form from adding code to current page URL instead of re-directing. Been stuck for days
- custom search query database in child theme
- Using transients to store form notifications
- Insert data from form to database
- not able to access $_POST on backend profile update
- Custom Plugin Develoment, Form Action
- wordpress form action page not found
- Trouble with checked() for array of multiple checkboxes
- If input field has value Require another field – PHP
- Custom HTML form using PHP – help with ajax/username validation
- Form direction to .php on localhost
- Form not working as it should in WordPress, but in a normal HTML site it does
- Submitting my form to the database and then redirecting to payment site
- Ajax call URL 404’ing when pushed to staging server
- Update only some custom user fields
- Post from front end form to post_meta
- Accessing values entered via form – try again
- Nonce fail after second submit attempt
- Dynamic form variables for post meta
- Headers for Contact Form are wrong
- Using Nonce for my Form
- upload images on front by user using form
- How to pass username into form that sends data to database
- HOW TO Insert Existing PHP Code to WOrdPress
- Where to put include php file?
- Custom form that stores data in mysql database
- Putting form result in my database
- Can’t insert into a database wordpress
- Help with commenting system
- Display endpoint’s return into a file (file_put_contents())
- How can I process a form submission from an HTTP POST request?