The whole point of esc_attr
is to encode special characters to avoid confusion later on. So if you have double quotes, yes they will be changed into "
. If you don’t want that, don’t use esc_attr
.
If you insist on using esc_attr
but don’t like what it does, you’ll have to undo it after you have used it. That would go like this:
$input = esc_attr ($_POST['alep_textfield1']);
$input = str_replace ('"', '"', $input);
update_post_meta ($post_id, 'alep_textfield1', $input);
Related Posts:
- Need Help Fixing My Iframes [closed]
- Trying to retrieve post meta
- Saving zero in meta box
- Find a way to retrive data updated through metabox plugin to web page
- Why does this update_post_meta function not delete the custom field itself?
- How to store multiple custom meta box
- Including Custom fields within the_content
- Display background color or image with custom meta box?
- Meta boxes only displayed when editing normal (default wp post_type) posts
- Can ‘Custom Field’ data be inserted into this Short Code?
- Updating Metadata with Shortcode
- Create shortcode for metabox gallery
- Block error message in foreach loop when looping through ACF field
- meta field for numerous links
- custom field meta-box with dropdown/autocomplete
- If custom field doesn’t exist, or exists and it’s true show title?
- How can I put a custom field as the link of a button shortcode?
- Where can I find the code for the menu page meta boxes?
- PHP Puzzle: Unique Styles with PHP loop
- Display custom meta box in my template file
- Shortcode Displays 2 times
- How to execute a shortcode within a custom field?
- Is there a way to parse shortcodes in PHP?
- Display sorting options dropdown when using WooCommerce product category shortcode
- Retrieve multiple values passed to a single attribute in a shortcode
- How to display multiple Post meta_key/meta_values by SQL query
- How to use multiple query with same meta key
- Export User Info to CSV from Front End
- Counting number of posts in a category and its sub categories and displaying result using shortcode
- Shortcode created to check language not works
- Save selected item from dropdown menu in a meta box as a metadata value for a custom post type
- How to loop over custom fields in a page template?
- Add/echo div with Analytics-Code to function in functions.php
- How can I default to all WordPress roles when parameter is not included in shortcode?
- PHP contact form returns warning in text widget [closed]
- Listing and displaying WooCommerce Shipping Zones in the frontend? [closed]
- Recent post display using shortcode
- Need to turn this php into WP shortcode
- wp_editor and WPAlchemy messes up tags when updating
- custom shortcode will not display the wrapped content
- tracking number field in Woocommerce order [closed]
- Trigger popup in a php if/else statement
- Append HTML Using Shortcode
- How can I create a list of page titles from custom meta values?
- How to select the contents in the text view textrea in wp_editor?
- How to output a PHP file values by shortcode?
- WordPress – Display array data of a child
- Why do WP_Query results change after updating unrelated Advanced Custom Fields (ACF)?
- Adding number to date not working [closed]
- Saving and Restoring a Canvas on A Individual User Basis
- How to use thumbnail size of image if I’m only using src to get image
- 3 Slashes appear after Apostrophe in custom fields after updating product-site
- Redirect to another page using contact form 7? [closed]
- Get URL from shortcode tag
- Custom Field IF/ELSE PHP
- Is it possible to retrieve all posts with a certain value for metadata?
- Illegal string offset in PHP function
- Shortcode from a function not working
- Is it possible to return content, and then also continue to do other things?
- Run str_replace on title and save the output to a custom field
- Creating WordPress Shortcode with Variable
- Catchable fatal error: Object of class stdClass could not be converted to string
- Could use some help with Shortcodes
- if custom field doesn’t exist, use post thumbnail instead, as image background
- Shortcodes showing in excerpt despite using strip_shortcodes
- How to get my [shortcode] rendered on the home page, other pages are fine
- Comparing Dates from custom field
- Display movies that apear this day next
- Display Custom Field in Sidebar if Value is Present
- Meta Box Plugin Cloned Fields – Multiple Foreach values
- MySQL Query Returns Array () In Shortcode
- Delete images from media library when user deletes an image from ACF Gallery
- How to get woocommerce orders with get_posts method in a shortcode
- Counting number of posts in multiple (sub)categories using shortcode
- is it possible for a URL to filter by tag
- Where does php code to load data go?
- Echo short code syntax
- How to return html as a string from php for WordPress
- Changing Date Format on Custom Meta Data w/shortcode call
- Add the shortcodes from the enfold theme to the other theme
- add ‘publish metabox’ to Gravity forms edit page/form area
- Offset with ajax load more posts duplicates
- How can i iterate through this shortcode array?
- Shortcode in a $output statement
- Need help with PHP functions
- php if, else & custom fields – syntax error
- Shortcode At top of Page – PHP 5.5 vs 5.4 – ob_start();
- Repeatable field within repeatable group of fields
- Using the same shortcode to show any table from the database
- Shortcoding with Divs
- Display selected parts from selected pages on the frontpage?
- How to callback custom field text
- Custom Shortcode with Dynamic Button
- Too many if’s and else if’s ?? – Must be better way [closed]
- WP query with variables gives no result for specific user
- Is there a better way to output HTML as a shortcode?
- Redirect loop upon installation of my plugin
- REST API custom endpoints for metaboxes
- How to initialise WP_Query on the basis of a specific meta_value and continue iterating rest?
- Custom Admin Menu Report for Specific User ID