You are sending text
unencoded. urlencode
that just like you do the permalink.
<a class="popup" href="http://twitter.com/share?url=<?php echo urlencode(get_permalink($post->ID)); ?>&text=<?php echo urlencode(the_content_limit(100, ""));?>"><img src="http://zitatezumnachdenken.com/wp-content/uploads/2013/04/twittersmall.png" alt="twitter"></a>
Although, the_content_limit
looks like it probably echo
s (based on your usage) instead of returning a string, which you will need. So I expect you will have to find that function and alter it or duplicate it or find some other alternative to get a string that you can encode.
Related Posts:
- Validating input using java.util.Scanner
- What is the actual minimum length of an email address as defined by the IETF?
- Server side validation
- Does wp_insert_post validate the input?
- WordPress oEmbed W3C Validation
- How to Remove novalidate attribute from comment form
- What is wp_check_invalid_utf8?
- Data Validation
- Data Validation: Always escape late / escape HTML Code
- Multiple register settings, with same option name – issue
- Inconsistent server code response using HTTP API
- wordpress site validation errors
- Data validation
- Best Practice for Validating and Sanitizing Data
- Does balanceTags() provide any escaping / protection?
- Data sanitization for user registration and user login
- wp_remote_post – handling responses
- What data sanitzation function should be used to store entire source code of webpage?
- protect user submitted posts
- Settings API – getting hidden input / submit button’s name
- Why the WP Core team does not allow filter_* functions? [closed]
- confused about sanitize_email after is_email [duplicate]
- Require user to input code from an array of allowed codes with Gravity Forms [closed]
- Output Sanitation
- How do I sanitize the str_replace function in javascript variables
- WordPress live, custom text box validation, how to?
- How to do more than one verify_nonce in one function?
- W3C validation errors (trailing slashes)
- Jquery Validation Engine with Conatct Form 7
- Gravity Forms validate arrival and departure
- Why is my script’s regex having its backslash removed?
- Validation Always Tells There Is an Open DIV
- How long does plugin review usually take?
- WP calendar summary attribute validation error
- syntaxError: ‘continue’ not properly in loop
- syntaxError: ‘continue’ not properly in loop
- ZIP Code (US Postal Code) validation
- How to validate custom fields in custom post type?
- How should one implement add_settings_error on custom menu pages?
- WordPress Internal @ Mentions
- Validation error: Extending Gutenberg gallery block
- is_email() VS sanitize_email()
- A plugin where users can comment with Facebook or Twitter or OpenID [closed]
- Validating a new user registration field
- Is there a plugin that creates a WP post based on a Twitter account’s hashtag?
- Best way to allow manageable social media URLS?
- Comment form vaildation
- How to validate custom fields for a custom post type before insert?
- wordpress widget textbox in the sidebar
- How to display custom twitter posts with the twitter plugin?
- Do I have to have a nonce for a custom comment field?
- How to retain the values from dropdown category lists after wrong form submission?
- Server side validation for Contact Form 7 [closed]
- Twitter-like follow system, is there any plugin?
- Remove type attribute from script added by wp_localize_script
- Share comment to twitter after publishing [closed]
- Show Twitter followers count snippets don’t work
- Remove ‘rel’ attributes from the_category() output
- Settings API – sanitize_callback is not called and it leads to an incorrect behavior
- How to validate custom field on lost password form before the user id field?
- Validate form in functions.php, send errors back to template
- What is the proper way to validate and sanitize JSON response from REST API?
- SVG Featured image not shown in twitter
- Is it possible to use Twitter intents with the post’s image in WordPress?
- I would like to password protect my entire WordPress site (ip validated), except for one page
- Pulling Twitter RSS feed not working as expected (fatal error)
- Automatically add simple custom buttons for print, Facebook share, & Tweet in Posts [closed]
- How to remove role=”navigation” from all nav elements?
- Prevent invalid or empty values from being saved to the database and retain the form field values upon error
- Validate post checking if child term is assigned
- How to use the built in tooltip for form validation error messages in WP admin plugin?
- Resetting admin post form on JS validation fail
- Only allow site url in text field using wp_kses/wp_filter_nohtml_kses?
- Permalink doesn’t get displayed in Twitter button (Local WordPress problem?)
- Make post_content and other custom fields required
- Settings API validation callback
- WP-TweetButton is not displaying the tweet button if this is set to “Manual.” [closed]
- Flush rewrite rules on option update with Settings API
- Ajax Validation for reCaptcha
- How can I style a certain element only when wptouch is active?
- register_setting & add_settings_error validation issues with multiple fields
- Post Format Link Validation Error
- Modify code for functions.php with specific twitter user url and hashtags
- Contact Form 7 WordPress, checking a few fields, if empty then invalid
- validation email signup form buddypress
- How to validate image with specific height and width selection in media selector
- Passing form data on submit
- How to set parameters for a Twitter post using wp_oembed_get (remove rounded borders)?
- Validating Error with submit button
- Custom HTML form using PHP – help with ajax/username validation
- Allow users to register on multisite through WooCommerce using the same email address
- media_handle_upload on mix form fields (not required file input)
- Filter and validate user role in registration
- can we add twitter count button on wordpress?
- Do_Shortcode not working for Embed any tweet
- Meta title W3C Validation Error with
- Contact Form 7: custom validation [closed]
- Using jQuery toggle() in WordPress post to show/hide Tweet button?
- WordPress Plugin for Maps of specific Tweets? [closed]
- How to add verification on email address change?