The problem is that get_the_title()
will pass the title through a filter that texturizes the quotes. So a regular ” becomes a curly quote (“) and urlencode()
will break it.
So instead, write your own title function and use that:
function my_get_the_title() {
global $post;
return $post->post_title;
}
This should bypass any unwanted filters and let you work with regular quotes.
Related Posts:
- urllib.request in Python 2.7
- Create New WordPress User after Twitter Signin, using Twitter credentials?
- How to display custom twitter posts with the twitter plugin?
- Show Twitter followers count snippets don’t work
- Tweets based on Twitter hashtag into a pending WP post
- Is there a Twitter WordPress plugin that changes https to http?
- Displaying tweets problem with @username
- How can I style a certain element only when wptouch is active?
- Twitter feed – Failed to open stream [closed]
- Displaying Tweets from CPT
- can we add twitter count button on wordpress?
- Turn twitter-urls into list timelines?
- Twitter knocks website out
- echo or return? [duplicate]
- Why isn’t my Twitter widget working in my theme?
- How to acces the twitter user profile link?
- syntaxError: ‘continue’ not properly in loop
- syntaxError: ‘continue’ not properly in loop
- syntaxError: ‘continue’ not properly in loop
- WordPress PHP proxy/helper pages for Twitter API
- Replacing the title in admin list table
- Is there any difference between the_title() and echo get_the_title()?
- WordPress Internal @ Mentions
- Changing title of a page dynamically from within a plugin
- A plugin where users can comment with Facebook or Twitter or OpenID [closed]
- Importing Tweets with certain hashtags into WordPress
- the_title() and the_permalink() won’t work on AJAX calls
- Remove “Private” + “:” in title does not work
- Using WordPress publicize with main account and editor user accounts
- How to split up the_title and insert a span tag
- Get post title with link
- How to get page’s ID if I know the title only?
- the_title(); works in a page template, outside the loop. Why?
- publish_post hook isn’t working for scheduled posts
- Top 3 posts in last week ordered by Facebook and Twitter share counts
- Customize Embedded Tweets (or, How To Hide Photos in Embedded Tweets)
- Get post/page title from ID
- Modifying recent post widget to include icons for post titles
- Twitter/Facebook login for comments [closed]
- Is there a plugin that creates a WP post based on a Twitter account’s hashtag?
- Best way to allow manageable social media URLS?
- Twitter feed is showing blank in WP site [closed]
- Replacing the title in admin list table
- How to add hook to the_title() and get_the_title()
- posts order by title second word
- get the_title_attribute by id
- custom field to always to .get_the_title()?
- How to display thumbnail + tags + title of a child page?
- How can I add @anywhere to my blog?
- Multiple Conditions for Child Page Title
- Adding a custom line of text to php code
- How to intercept Post Title on Post-Save
- Tons of Twitter rows in my database
- Displaying additional User Contact Information
- Searching for a better Twitter widget
- Should I ask my Twitter plugin users to create their own Twitter App and API Keys to use my plugin?
- Is it possible a one click user registration with Facebook or Twitter (or other Social Networks)?
- Twitter-like follow system, is there any plugin?
- How to Hide Ancestors/Threads in Embedded Tweets
- Trying to inject twitter metadata into using wp_head action in functions.php – get_the_excerpt() returns null
- Share comment to twitter after publishing [closed]
- Browser loading content from Twitter in admin area?
- Which social connect plugin do you recommend? [closed]
- Filter get_the_title to remove certain characters?
- get_title without filter(the_title)
- Embedded Twitter feed won’t render nicely when loaded via Ajax
- Is there any difference between get_the_title() and single_post_title()?
- How to change the page title from functions.php
- Long Post Title Misaligning Grid with Featured Image
- get_posts() loop returns the same the_title() for each post
- Can’t get title of latest post
- the_title gives me the page’s title not the post title in the following code
- How to sanitize post title with commas
- the_title filter returning wrong post type
- Checking post format during xmlrpc_publish_post
- Runng Cron Job for Plugin With No CronTab Access
- Add function to Simple Twitter Connect to not Tweet pages
- Plugin to show a widget hashtag as widget or shortcode? [closed]
- SVG Featured image not shown in twitter
- How do I hide the current page’s title?
- Custom post type title is set by other custom post type
- Is it possible to use Twitter intents with the post’s image in WordPress?
- WP action/filter to modify title before header output and article output?
- Enter a variable in the ‘category_name’ parameter
- Pulling Twitter RSS feed not working as expected (fatal error)
- Automatically add simple custom buttons for print, Facebook share, & Tweet in Posts [closed]
- w3c validation problem – Twitter share button pulling content
- wordpress get gallery images title
- Get url-friendly version of the_title?
- Mixing Tweets with Posts
- Updating the Drag-To-Share eXtended share URLs?
- Twitter links in widget don’t work?
- Let users share posts via Twitter?
- Don’t see add_filter result in the site front page
- Why is my oembed function modifying Twitter embed?
- change title separator
- how i can add title to my featured image?
- Access get_the_title() from ‘excerpt_length’ filter
- Twitter shortlink 404 not found [closed]
- Display post content with respect to its title?