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?
- Sort posts by custom fields value using dropdown menu
- Can I prevent the user from adding more than two levels deep of terms inside of a taxonomy metabox?
- Image media upload metabox
- Custom profile field with birthday. Troubles with
- Showing a different gallery in a seperate post
- How to display posts by current user in a drop down
- Loop with slider (slider not loading)
- Should custom meta boxes be able to output shortcodes the same as WordPress’ native post editor?
- Linking text within textarea of custom meta box
- Create own WordPress shortcode gallery
- WordPress – Display array data of a child
- Get value from shortcode to do something
- wordpress allow user to edit user profile with custom fields
- Why do WP_Query results change after updating unrelated Advanced Custom Fields (ACF)?
- How to exclude category ID from Looper in WordPress
- Add a specific part of current category page url to shortcode
- How to display data from custom table in wordpress phpmyadmin
- Calculating a large number of MYSQL queries as customshort codes, slow
- Store multiple custom field as post meta per post(css, js, html, 2 link) [closed]
- How to VAR_DUMP a $variable during checkout process (Is my product meta callable?)
- WordPress Shortcodes.. printf is outputting a random number… Can’t figure out WHY?
- Remove metabox from WordPress menu editor page?
- Firing schema via code in functions.php doesn’t work
- Colon is Missing In My Website Url in WordPress
- MetaBox body is not showing (the callback function)
- Adding number to date not working [closed]
- How can I add extra word in permalink when someone click download button?
- Saving and Restoring a Canvas on A Individual User Basis
- Custom shortcode outputs plain text instead of HTML at top of post
- Seach custom post type posts only by meta fields?
- How to use wp_add_inline_style for custom CSS added via shortcode?
- How to use thumbnail size of image if I’m only using src to get image
- Pass php dynamic variable to shortcode
- How can I dynamically update the class in my shortcode?
- Creating own shortcode – echoeing php variable based on JS variable
- 3 Slashes appear after Apostrophe in custom fields after updating product-site
- how to retrieve a value if a checkbox is checked
- Trouble checking if custom woocommerce checkout field is empty or not
- Two queries for a WP_User_Query search work perfectly apart, but not together
- How create a Shortcode with hover and complex options
- Remove from shortcode
- Displaying recent posts on static page with template-part via shortcode
- auto-populating custom nav with all items from custom post type
- wordpress 4.4 self hosted video (html5) doesn’t show
- do_shortcode with custom field
- Add / Update Custom Fields After Select Pictures in Media Window
- How to Reference/Echo Variable from Another PHP Function
- Remove echo from shortcode
- Replace shortcode in substring
- conditional logic for front-end custom field edits
- Automatic Shortcode Creation with Custom Fields [closed]
- Custom field values to taxonomy terms
- can i fetch a custom metabox data in another page or post type?
- WordPress from url get external source title
- How would an if statement surrounding a custom field with two variables (holding values) look like?
- Shortcode to show the code
- Shortcode returns values in the wrong order
- Redirect to another page using contact form 7? [closed]
- How to add specific meta tags to head of cart and checkout pages in woocommerce?
- Add additional field to custom post_type
- Limit checklist by the current user
- Get URL from shortcode tag
- Embedding PHP in shortcode $content
- Custom Field IF/ELSE PHP
- Shortcode with PHP issue “Undefined index”
- Which PHP page is the Default Posts Page
- How to convert select to HTML with PHP tags inside of it [closed]
- Sanitizing text fields in array
- How to combine 2 php functions into one function with a custom field
- Remove the last X characters of a custom field value
- Excecuting php function in shortcode
- Advanced Custom Fields – display label and value only if value entered
- Only first shortcode gets executed
- Is it possible to retrieve all posts with a certain value for metadata?
- Multiple do_shortcode in page template
- shortcode in a custom metabox
- Non-Closing PHP Query in WordPress Loop
- Returning data instead of echoing/printing