Aggregates hashtagged content from multiple social media sites into a single stream.
Tagregator lets you add a shortcode to a post or page on your site, and pull in content from various social media networks onto that page. For example, if you add [tagregator hashtag="#WordPress"]
into a page, then you’ll see posts that mention the #WordPress hashtag.
For help installing this (or any other) WordPress plugin, please read the Managing Plugins article on the Codex.
Step 1) After installing the plugin, go to the Tagregator > Settings screen and enter the credentials for the services you want to use.
When creating a Twitter application, you should enter the URL of your website in the “Website” field (e.g., http://www.example.org
), and then leave the “Callback URL” field empty. Once the application is created, copy the Consumer Key and Consumer Secret into Tagregator’s settings.
Step 2)Add the [tagregator] shortcode to a post or page, and include the hashtag(s) you want to aggregate:
Examples:
[tagregator hashtag="#WordPress"] [tagregator hashtag="#wcsf, #wcsf14"]
You can also enter keywords or search queries, like this:
[tagregator hashtag="cooking"] [tagregator hashtag="ice cream"]
You can specify the number of columns you want with the layout
attribute:
[tagregator hashtag="#WordCamp" layout="one-column"] [tagregator hashtag="#WordCamp" layout="two-column"] [tagregator hashtag="#WordCamp" layout="three-column"]
The default is three-column
. On mobile devices, it will automatically reduce to one or two-columns in order to fit on the screen.
Step 3) Wait 30-60 seconds for the plugin to pull new content in.
There could be something wrong with your API credentials or network that is causing the API requests to fail. Tagregator logs the raw responses to assist in debugging.
To view the logs, add this line to a functionality plugin, and then visit the Tagregator > Log page.
add_filter( 'tggr_show_log', '__return_true' );
Warning: The logs will contain your private API keys, so don’t post them on public forums, etc.
This is probably because you haven’t configured your timezone in WordPress’s General Settings. After updating the timezone, you may need to wait up to 23 hours for new posts to appear ahead of the ones that were saved with the old timezone.
Twitter’s API doesn’t guarantee that every tweet will be available in the results it returns.
You can achieve a similar look by specifying one-column
in the shortcode’s layout
parameter:
[tagregator hashtag="#WordCamp" layout="one-column"]
If you find a security issue, please disclose it to us privately via Automattic’s HackerOne bounty program, so that we can release a fix for it before you publish your findings.
Yes, Tagregator allows you to add custom modules that you develop for other services by hooking into the tggr_media_sources
filter and adding an instance of your class.
The best way to get started is by downloading the example plugin and customizing it to fit your needs.
Once you’re done, please consider sharing it with others by submitting it to the WordPress.org repository.
global $post
statements with calls to get_post()
.