Add a hidden field to the form like this:
<input type="hidden" name="page_title" value="<?php the_title_attribute(); ?>" />
This will send the current posts’s title.
Related Posts:
- How can I get $id variable in widget’s form function?
- Refresh page after form action
- contactform7 remove tags with “wpcf7_autop false” from functions.php
- Add new user : make the fields First Name and Last name required
- How to call WordPress functions from a form processing script
- what is the meaning of settings_fields()
- update_post_meta for custom field not working upon form submission
- WordPress registration and contact form 7 [closed]
- Gravity Forms – Using a Form to Pre-populate A Gravity Form [closed]
- Ninja form Redirect depending on text field content [closed]
- WordPress upload_mimes not working for front-end uploads of 3D files
- Ajax not working properly
- Having a Function Inside of the Loop
- Removing custom meta data
- Is There Any Built In WP Functionality For Combining Form Fields To Return Specific Data
- wp_nonce_field is breaking form for reasons unknown
- Contact Form 7 If Condition
- How to properly refresh page after form action?
- Init action and refresh page after form action
- what is best way to keep track of changes made in wordpress website? [closed]
- This code is supposed to only allow user to be authenticated if accountVerified is equal to 1, but it still allows user to be authenticated otherwise
- Problems adding a new field to product in cart
- Postback redirect through add_action is not triggered
- Button click counter for login user
- How to change form action of wp-login page with a function
- WordPress Ajaxifying not working properly
- Sending Messages Back to the Template After Processing?
- us states dropdown function and echo in theme template files
- Adding custom field in menu options [duplicate]
- Gravity Forms After Submission – GFFormsModel::update_lead_field_value?
- Will my WordPress site become vulnerable after adding this functions which allows more HTML tags for subscribers?
- Help finishing script to export WP user data when form submitted
- Directing to functions.php the correct way
- WordPress Custom wp mail template return full template
- Get all users from role and add to dropdown (select) – wordpress, javascript
- Can’t find function which is called in a wordpress theme
- CF7 Remove Comma from ‘select’ ‘radio’ and ‘checkbox’ outouts
- Remove Actions/Filters added via Anonymous Functions
- opening links in new tab using – add_filter( ‘the_content’, ‘make_clickable’);
- How to add classes to images based on their categories?
- Generating Responsive Background Image Sizes in PHP
- Set default options for inserting media
- Session is not starting
- Override a class function to include a custom template
- How to auto-update child posts whenever the parent post is updated?
- the_post_thumbnail fallback using hooks
- How to detect first visit of a user?
- Hide WYSIWYG editor on certain templates
- Disable shortlinks like ?p=1234 to prevent scraping
- Redirect a list of URLs to another URL, using functions.php
- Override woocommerce wc-class function
- WP_Remote_Get Not working
- Debugging with functions.php
- How to limit character length in BuddyPress function output [closed]
- Ordering posts by publish date not working?
- Is possible add icon in title posts only in specific tag?
- Wp_schedule_event functions.php
- How to search using ajax for exact phrase or words in an input field?
- Can’t generate thumbnail images
- Display tags that only appear in one category
- Need help “sanitizing” a custom function that pulls category slug into body class
- Space Not Being Generated in HTML Output?
- How to display retweet count and likes in the meta above the excerpt
- Auto Generated HTML source code formatting
- Do not show on homepage functions.php code needed
- Get Comma Seperated Taxonomy Linked Terms and Last Child Separated By “&” Instead Of Comma
- How to remove a specific word at the beginning of the content and add it to the end of the content
- Programmatically add Yoast meta description after post save
- Exclude Category ID in function
- get_template_directory_uri() links to child theme not parent
- Functions Filter Question [closed]
- Remove attachment page for audio media type only
- Where to store credentials used in a function? [duplicate]
- get_template_directory() – references parent theme directory
- Function that prevents users from uploading photos more photos
- Why I can’t load my JavaScripts using an hook inside my functions.php file?
- Shortcode of a function
- I would like single.php to act just like index.php
- Does WordPress has an automatic link parse function?
- A better way to get stats
- Get URLs for AJAX Filter Checkboxes WordPress
- How do I trigger WP CLI DB export using a PHP function?
- Redirect specific author posts to another url
- Show number of sold products but be first for less than 2
- How to retrieve image IDs from shortcode content?
- Class::$template_dir_path=get_template_directory();
- admin-ajax.php & my wp-admin folder url showing in header
- WordPress – Custom Nav menu for logged in users – Shopkeeper theme
- Change post count on tag/terms pages to 10
- Error function main() is a non-object to construct my Ajax.php
- Fatal error after changes to functions.php, even with original file
- update_post_meta after form is submited
- Should I use `get_stylesheet_uri()` or `get_template_directory_uri()` when calling my CSS Stylesheet?
- new to javascript – using in instead of functions.php, not loading correctly
- Remove Disqus JavaScript from homepage
- Missing argument 2
- How to resize image from import image url?
- Vimeo video play button color function
- Change TinyMCE undeline outpout
- Loading newest dependency javascript module file in functions.php