开发者 | whack47 |
---|---|
更新时间 | 2015年11月18日 03:24 |
PHP版本: | 3.8 及以上 |
WordPress版本: | 4.2 |
版权: | GPLv2 or later |
[rrssb options="<a comma separated list of social buttons>"]
For example:
[rrssb options="email, facebook, twitter, googleplus, linkedin, reddit, youtube, pinterest, pocket, github, tumblr, hackernews"]
Or use the exposed function rrssb(options); in any of your templates.
`
A single comma separated string will work too!
`
Use the option 'outside_loop' if you want to add buttons to your header or to an archive page.Did you add the shortcode or function? Make sure you are correctly passing the options in according to the examples in the installation section.
A few notes about this: If you are working on a local development site, the pictures won't show up and the Twitter character count will be off. In a hosted environment, images will get pulled from the Facebook or Twitter metatags (you must include these yourself). If the metatags are not available, images will be taken from the article in which the buttons are found. If the description metatag is not available, it will be copied from your site's tagline in WordPress's settings.