This is what I changed to and worked perfectly.
echo '<textarea style="margin-left: 15px; width: 246px;" rows="3" cols="28" name="cf-message">' .
( isset( $_POST["cf-message"] ) ? esc_attr( $_POST["cf-message"] ) : 'I am interested in: '.get_the_title() ) .
'</textarea>';
Related Posts:
- How to return number of found rows from SELECT query
- Allow Editors to edit pending posts but not draft ones
- Check php version before theme activation
- WP API V2 returning Invalid User ID
- Why does $_SESSION only work when I am logged in?
- How to make an meta_query optional?
- How to show only parents subpages of current page item in vertical menu?
- How to use copy() function and paste file in /wp-content/themes directory
- PHP calling AJAX function that relies on passed PHP function values not working
- Sanitize get_query_var() url parameters
- I think emoji are killing my WordPress site… How can I debug?
- WordPress Ajax Data problem
- Hiding a php element from mobile browsers
- How to safely remove the footer (twentytwenty)
- ajax_object is not defined when ajax calls the function
- How do I fetch all comments per post via WP REST API?
- When using the_author hook, how can I determine the PHP file that generates each call to `the_author()`?
- wp_insert_post not working
- Add htaccess rules with insert_with_markers at beginning of htaccess
- Add a custom stylesheet for BlackBerry
- Custom theme: Alternatives to long list of ‘include’ in functions.php
- Reordering Buddy Press profile navigation [closed]
- Why my filterable portfolio page work not perfectly between slug button and slug output WORDRPESS?
- MetaBox body is not showing (the callback function)
- How to make products with no cost in WooCommerce
- Pass php dynamic variable to shortcode
- Insert term and child term from frontend
- Do wordpress create a new file for each new post?
- Catchable fatal error on 3.6 update
- AJAX – Returning Two JSON Objects with One PHP Function
- How to show a users bio on a page
- Defined WordPress Memory Limit to Unlimited
- Add Ajax Hooks and Call from Custom Template PHP
- Why in my theme I can’t see all the statics content under the posts?
- Display all pages – in order
- Backend of the WordPress.com [closed]
- Get Page ID from Backend
- How to make jquery count down timer function manually editable
- Hierarchical taxonomy list with modificated term links
- What’s a good way to allow overwriting files within a child theme if I want the same folder structure?
- Double Curly Brackets in Php
- WordPress filter load_textdomain_mofile not working inside a child theme’s functions.php but works form inside a plugin
- How to unlink all posts from tracking same amount of views
- How Do I Find & Remove H1 From Site-Title-Wrapper? [closed]
- Redirect a WP created page to a manually created PHP file inside theme folder
- How to hide posts of a specific custom category in WordPress?
- Output category list inside array
- Have Woocommerce show product price if id, when not logged in
- Composer setup-config.php not found
- Problems clearing cache
- How to make a conditional statement within $output in shortcodes.php?
- Extend Menu Walker Output
- How to debug failed changes to posts?
- how to add a div inside wp_page_menu
- Strip from or something better?
- Add “alt” Attribute to GD Star Rating Tags
- calling admin-ajax.php from admin-ajax.php
- Inline related post Gutemberg
- wp_query with multiple arguments with AND
- Sending POST request on a wordpress page
- how to replace h1 entry title with h2 in category pages only
- Infinite next / prev post in single.php page
- ACF: Display Google Map in frontend issues
- How to unset a function from a action inside a class, that is called in another class
- async upload not working when not logged
- How to get post image caption by index
- How to use apply_filters() inside a plugin class?
- Display page content in different sections – based on page break block?
- WP Error using wp_insert_term
- post_exists stops working in a scheduled event
- register dependency css and js inside a plugin class
- WordPress generate images size after upload
- Filtering custom posts by using checkboxes for taxonomy in an ajax loop always gives server 500 error
- Check If bootstrap last column is even or odd (using ACF custom field)
- Pagination – Previous link is not show and Next link sticks at page 2
- Trying to modify content.php
- ajax polling with admin-ajax.php
- style.min.css code issue
- How do I modify the Previous and Next Page posts on blog pages to include “previous” and “next” before the links?
- How can i iterate through this shortcode array?
- How do I prevent a folder from reappearing in my home directory?
- How to detect and make links nofollow in author description
- Making my own admin panel for WordPress
- Styling admin page rows in order of importance (checkboxes)
- On selecting shortcode generate selected shortcode table inside page editor worrdpress
- WordPress plugin creating sidebar on the theme/page
- Pagenav Not appearing on custom Template
- How To Customize Position of »add to cart« of WooCommerce on Product Page [closed]
- Display wordpress post to static website in the footer
- PHP Puzzle: Unique Styles with PHP loop
- My title is showing after the shortcode
- Display Sale Price Before Regular Price (WooCommerce)
- Adding multiple conditional tags in a function?
- Using is home to get content [closed]
- a problem in class in class-wp-hook.php
- How do I a custom search form by taxonomies?
- WordPress REST API – Custom field not added to pages
- Woocommerce – add tracking code to another email template
- How to add custom user role into wordpress
- change title of page dynamically