Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [twitter]

For questions involving the social networking service Twitter

0
votes
0answers
12 views

Not able to get my callback URL to work with my wordpress plugins

I have installed a Wordpress Plugin (Revive old Post). This plugins on my wordpress website to send old post to my twitter account.. I have setup my developer account with twitter.. for this plugin ...
1
vote
1answer
28 views

Why is my oembed function modifying Twitter embed?

Building a theme with Boostrap 4 and WordPress 5.0.1. Under Bootstrap's documentation for embed video the following format is required for responsive videos: <div class="embed-responsive embed-...
0
votes
1answer
234 views

Featured image not shown in twitter post

I have a post with a featured image (size 736x212). The post url is this. I shared my post on twitter, but the tweet doesn't show the image (if you want to check click here). What could be the problem?...
0
votes
1answer
57 views

How to replace get_the_excerpt with first N words of post article while stripping html

I'm trying to add Twitter Card functionality to a Wordpress blog so that whenever someone posts a link to an article on Twitter, the card displays. Here is the code I put in functions.php of my theme ...
0
votes
0answers
12 views

Embed a tweet without attached media

I want to embed a tweet but not include the attached media. On the other tweets in my post I do want the attached media. I followed this advice: add a data-cards="hidden" attribute to the resulting ...
0
votes
0answers
47 views

Mix Facebook and Twitter feed into custom posts

I am currently running into a problem where I have to combine my Custom Post Type posts with the feed of a facebook page and a twitter channel. I know that there are a lot of plugins out there that ...
0
votes
0answers
144 views

How to Hide Ancestors/Threads in Embedded Tweets

I'd like my embedded tweets to not show a parent/ancestor, for example this is how Wordpress oEmbed displays a single tweet I'd prefer all to look like: I tried this approach to filter on ...
0
votes
1answer
87 views

Need To Change Wordpress Meta Tags… Includes wordpress shortcodes

Hi Need help to change wordpress meta og urls with wordpress shortcodes... Below is meta I need implemented and I only need to apply to certain post ids... Not the entire website... Note -- All the ...
0
votes
1answer
177 views

How to set parameters for a Twitter post using wp_oembed_get (remove rounded borders)?

I'm very new to WordPress. I have managed to create a custom field for embedded content (using carbon fields) and oEmbed. It works by simply using the code: echo wp_oembed_get($variable); The $...
2
votes
0answers
40 views

Trying to inject twitter metadata into <head> using wp_head action in functions.php - get_the_excerpt() returns null

So I followed the "Add Twitter Cards without plugins" this tutorial for how to add twitter metatags into the header using the wp_head method. I have pretty much taken the code as is, and put it in ...
1
vote
0answers
38 views

Twitter shortlink 404 not found [closed]

When i put a url of my wordpress page on twitter show the following however if i click go to the correct page any idea?
1
vote
2answers
86 views

Is it possible to use Twitter intents with the post’s image in WordPress?

I am using Twitter Intents as part of my theme and I can successfully share posts’ URLs on Twitter. However, I would like to be able to show the images of the shared posts. Is that even possible? I ...
0
votes
0answers
12 views

How can I change a webpage display in tweet

I'm currently trying to change the display of a specific webpage in tweets - for some reason, any tweet referring to this webpage displays a logo that doesn't appear on the webpage. That logo isn't ...
1
vote
1answer
2k views

Customize Embedded Tweets (or, How To Hide Photos in Embedded Tweets)

I'm relying on the WP functionality to embed a tweet. When I add a tweet URL, like so: https://twitter.com/SamFlowers/status/724417082247528448 to the editor, it expands and shows the following: I ...
0
votes
1answer
168 views

can we add twitter count button on wordpress?

i have seen many post regarding adding twitter's tweet button on wordpress page using different plugins. <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script&...
0
votes
1answer
43 views

Getting 404 in the Javascript

I have directory called "api" and in that I want to run a php script called "tweet.php". This script file is calling inside a JS file. However I am getting a 404. Need help to solve the issue. Link ...
0
votes
1answer
59 views

Turn twitter-urls into list timelines?

I know there's the oEmbed ability to embed a specific tweet, as described in their documentation... but is there any way to simply get the latest in a particular twitter feed, without setting up an ...
-1
votes
1answer
176 views

do_shortcode for twitter doesn't work well

I have problem in show tweet in single.php template. So I use this way to echo the tweet like this :- $check_embeds=$GLOBALS['wp_embed']->run_shortcode( '[tweet 567061791826382849]' ); echo $...
0
votes
1answer
331 views

Do_Shortcode not working for Embed any tweet

I'm trying to use Custom Field types to embed twetter using the Do_Shortcode() like this : echo do_shortcode('[tweet https://twitter.com/wordpressdotcom/status/204557548249026561 ]'); And its not ...
0
votes
1answer
29 views

Twitter knocks website out

we have a really strange problem with a WordPress website. Whenever the client tweets a link to their site the whole server falls over. No one clicks on the tweets, and its literally the moment its ...
2
votes
0answers
31 views

Share comment to twitter after publishing [closed]

I need to share the comment from my web site after admin approves it from comment form to twitter account of user who comment for the post in my site. How can I do that?
0
votes
0answers
197 views

Insert post programmatically and decide to tweet or not to tweet

I am inserting a new post using wp_insert_post() and want to be able to decide if this post gets tweeted or not using the WP to Twitter plugin. First, I create the post, like so: $newpost = array( ...
0
votes
1answer
54 views

Detect each active instance of a widget

Is it possible to detect each active instance of a particular widget? As part of a plugin I'm working on, I want to run a for each loop on each widget instance Each widget is a Twitter feed and the ...
0
votes
1answer
127 views

Twitter Product Cards

I am trying to show twitter product cards. I have this function in my functions.php . I validated the twitter card and everything looks good except the product data. I am trying to display it for ...
0
votes
3answers
133 views

Getting Twitter Content on My Blog

I'm the editor of a niche blog that posts lots of great content. We also post links to other sites/resources in our Twitter feed. What's frustrating to me is that outside content on our Twitter feed ...
0
votes
1answer
190 views

rewrite rules social share links

Within the Ultimatum's theme childtheme.php I've added rewrite rules to the rewrite rules and it works perfectly fine. However, it does not work if the URL is shared in Facebook or Twitter. The ...
0
votes
1answer
122 views

Adding custom avatar field to comments

I want to store a users Twitter Profile Image when I found out that they've tweeted the link of a post (by using the Twitter API), but I'm stuck with the following issue: How do I store the Profile ...
0
votes
1answer
62 views

How to acces the twitter user profile link?

I need to access the twitter user profile url, after authentication of each users i wants to take their profile urls. i wants to know that how to do this in wordpress. Is there any plugins available ...
0
votes
1answer
64 views

Wordpress tags as twitter sharer URL hastags

I want to share a wordpress post on twitter. I'm using this : <a href="https://twitter.com/share?url=<?php the_permalink() ?>&text=<?php the_title() ?>&via=<?php the_author()...
0
votes
1answer
776 views

How would I use this filter to change the output of the date format to “Twitter time”?

I'm using a plugin called Latest Tweet Widget to display the latest tweet. The tweet date gets displayed by the month and day (Mar 22). However, I want it to be in "Twitter time" meaning words like "3 ...
1
vote
1answer
104 views

Pulling Twitter RSS feed not working as expected (fatal error)

I'm trying to get some of the latest posts from a Twitter account, without a plugin. According to Botcrawl.com's tutorial, this should be enough: <ul> <?php include_once(ABSPATH . WPINC . '/...
1
vote
1answer
456 views

Automatically add simple custom buttons for print, Facebook share, & Tweet in Posts [closed]

I want an easy way to automatically implement printing, Facebook sharing, and Tweeting for posts. No plugins, complicated javascript, nor functions.
0
votes
0answers
19 views

How to retrieve hashtaged tweets from a list of users and post to Wordpress

Is there any way retrieving all the tweets from a list of profiles which are tagged with certain #hashtag using Twitter API 1.1 and applying it as a feed to Wordpress? I have found this but I'm not ...
1
vote
3answers
4k views

publish_post hook isn't working for scheduled posts

I had a bit of an issue with wp-to-twitter publishing a tweet linking to a post that was set as 'pending' that i had emailed to my wordpress.org site. The email included a footer, which included my ...
0
votes
0answers
32 views

How to Pull Out Twitter Summary Data in other areas of my template?

I am curious on how www.gigaom.com is able to callout the summary data of their articles. In addition I am trying to figure out how the summary autoposts when you select the tweet this button and the ...
0
votes
1answer
373 views

How to keep sharing stats after creating 301 redirects?

I recently changed a lot of URLs for SEO purposes and realized that all of my Facebook likes and Twitter tweet counts were lost on posts created prior to yesterday. Posts created since yesterday ...
0
votes
1answer
64 views

How can I make the Twitter Tools plugin hyperlink every link?

It appears that (Twitter) shortened links are not auto-hyperlinked whilst non-shortened links are. Is there a patch to make all links hyperlinked - therefore clickable? E.g. http://cl.ly/image/...
1
vote
2answers
814 views

How can I replace an oEmbed URL in post with actual embed HTML

What I want is to get the output of the Twitter oEmbed system into my actual posts. IMHO the embed output itself is high-quality, semantic HTML and I'd rather have it inside the post than in the embed ...
-1
votes
1answer
172 views

Add a twitter feed to my Wordpress website

My website is WilsonsTransportation. On the left hand side of my site we have "testimonials" scrolling down. I've located the coding for that in my custom theme under page-home.php. I was hoping to ...
0
votes
1answer
174 views

How to correct Error: message on website Twitter Feed

I'm receiving a Error: Twitter did not respond. Please wait a few minutes and refresh this page message on my website at www.toan.ca. This has been going on for a few days and i would like to know ...
0
votes
1answer
961 views

New Twitter API and Twitter count + timeline doesn't work anymore [closed]

As some of you might know, Twitter has changed their API. With that some of my plugins / codes stopped working. I tried to fix them on my own, but failed. I tried googling for the new API URL and I ...
0
votes
1answer
268 views

Twitter feed is showing blank in WP site [closed]

I am using themefuse WP theme and facing this problem. http://themefuse.com/forum/thepractice-wp/twiiter-newsline-is-blank Can someone please suggest if I need to use some other attribute. I am not ...
-1
votes
1answer
47 views

Internet Explorer seperating lists differently in Twitter Widget Pro than all other browsers [closed]

I am having some trouble with the Twitter Widget Pro Plugin - for some reason in internet explorer if the first tweet has a link, it will make the link its own list item and add a bunch of extra ...
1
vote
2answers
364 views

w3c validation problem - Twitter share button pulling content

I have this twitter share button that pulls 100 characters from the content of the post and its URL for the twitter share. <a class="popup" href="http://twitter.com/share?url=<?php ...
2
votes
1answer
2k views

Adding a custom line of text to php code

The below code is used to pull in my Tweets and post them as individual blog posts on my Wordpress site. I would like to add a "Follow me on Twitter link" after the tweet when it is displayed in the ...
0
votes
1answer
236 views

Twitter feed - Failed to open stream [closed]

This works, however I keep getting a failed to open stream every so many random refreshes/page views. I've also tried this code on two different hosts with the same results. I've also tried using ...
8
votes
2answers
438 views

WordPress Internal @ Mentions

I'm looking for a way to link to author pages within one WordPress install simply by putting the @ symbol in front of a person's username in a post.... just like on twitter. Example: If the username ...
-2
votes
1answer
1k views

Publish post facebook page & twitter automatically [closed]

I need a feature in wordpress, using which a new post automatically posted to Facebook Page & Twitter. Do I need some plugin to do that.. Do you know any plugin that provides for this kind of ...
1
vote
1answer
266 views

Checking post format during xmlrpc_publish_post

WordPress apparently stores post format information outside of the $post object. During publish_post this isn't (usually) a problem because you can check on formats via get_post_format( $post->ID ) ...
0
votes
2answers
261 views

Auto-Tweet if Type is 'Status' using OAuth

Should be simple - I'd like WP to tweet the content of a post once (when it's published the first time) if the post format is 'status'. The code below isn't returning an error on publish, nor is it ...