Can I embed a twitter hashtag feed?
-
Hi
I thought that I can embed a twitter hashtag feed by adding a text widget to my footer area, with the code from twitter’s Widgets Configurator. But it doesn’t work.What I have so far:
<a class="twitter-timeline" href="https://twitter.com/hashtag/researchdata">#researchdata Tweets</a> !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");Is there another way of doing it? What I want to achieve: I’d like to display a twitter feed, but of a certain hashtag, not of a single account.
Thank you :-)
The blog I need help with is: (visible only to logged in users)
-
Note that WordPress.COM users have code restrictions. No JavaScript, no form codes, except these https://en.support.wordpress.com/forms/contact-form https://en.support.wordpress.com/forms/, no tracking codes, no advertising codes, and no unsupported embeds of unsupported iframes can be used on any wordpress.COM hosted sites.
Please read:
https://en.support.wordpress.com/code/
allowed HTML tags list – https://en.support.wordpress.com/code/#html-tags
https://en.support.wordpress.com/code/#javascript
https://en.support.wordpress.com/code/#flash-and-other-embedsSee: Moving to self hosted wordpress http://move.wordpress.com
-
Hi, I actually was able to do what you are trying to do, manuschwendener, through the widget, and by following these instructions. I was curious, so I just tested it. Worked like a charm.
https://en.support.wordpress.com/widgets/twitter-timeline-widget/
Scroll down to the Using Twitter Widget IDs section. Once you have the id, go back to the beginning of the WordPress.com instructions.
This should work for you. I tested this on a free account.
Happy Blogging,
~Christine -
To be clear, you don’t need to add any extra code. Everything timethief says is correct. :)
-
-
-
-
-
- The topic ‘Can I embed a twitter hashtag feed?’ is closed to new replies.