這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Publicize With Hashtags

外掛說明

IMPORTANT: This plugin requires Jetpack’s Publicize module: read below for additional info.

As the name says, this plugin will automatically append hashtags to any content sent by Jetpack’s Publicize module. This means that the plugin will work only if the Jetpack plugin is already installed on your WordPress platform with the Publicize module set to active. Don’t worry, tho: if any of these requirements are missing this plugin won’t do anything, without breaking your blog or compromising its performance in any way.

Plugin Features

  • Hashtags will be created using the post tags, (optionally) trimming the space chars, until the maximum character length is reached (if any).
  • You’ll still be able to manually add custom hashtags, pre-pending or appending them to the auto-generated ones just like you always did.
  • You can reorder the hashtags as you like, regardless of how they were added.
  • Dupe check included, ensuring that the same hashtag won’t be included multiple times – unless you manually do that.
  • Automatically added hashtags won’t break the 118-character limits of the social message text to keep the message length under the standard tweet + link limit.
  • The above character-length threshold can be changed and/or set to infinite with ease.

Useful Links

Authors

螢幕擷圖

  • The plugin will automatically trasform your post tags to hashtags and append them to the Publicize Widget’s Custom Message box. Any existing, manually inserted hashtag will be kept and/or won’t be added a second time if also included as a tag.

安裝方式

Go to the Plugins > Add New… panel in the WP Admin interface, search for “publicize with hashtags” and click Install.

If you prefer to install the plugin manually, you can do the following:

  1. Go to the plugin page on the WordPress Plugin Browser and click the Download button to get the latest version to your HDD.
  2. Upload the publicize-with-hashtags.zip file using the WordPress upload plugin feature OR unpack its contents inside the /wp-content/plugins/ folder.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress.
  4. Take a look at the plugin’s source code and change its default settings if needed.

常見問題集

What if I manually insert one or more hashtags?

They will be kept as they are: the plugin won’t strip out anything, it will simply add the “missing” hashtags to the Custom Message box.

What if I already inserted an hashtags identical to an existing post tag?

It won’t be added again, as long as it’s case-insensitive equal to the first one. The plugin will never insert a dupe hashtag on its own.

使用者評論

2016 年 9 月 3 日
SUPER GREAT JOB BRO THANK YOU FOR IT! 😉 http://www.facebookgifs.xyz/
2016 年 9 月 3 日
great plugin and works out of the box! but please explain how to modify $mess_max_length and $strip_spaces without modifying your plugin file?! we need some filters here. and please add a do_action hook for adding some custom hashtags by default. i.e. i have a post_type called “cars” and with each post, i want to add “#car” without tagging it each time by hand. something like this would be nice: line 92 of publicize-with-hashtags.php add: do_action("hashtags_append"); then in my functions.php i can write: function hashtags_append_static(){ global $mess, $post; if(get_post_type() == "cars") return $mess .= ' #cars'; return; } add_action("hashtags_append","hashtags_append_static");
閱讀全部 6 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Publicize With Hashtags〉的開發相關工作。

參與者

將〈Publicize With Hashtags〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.1.4

  • Fixed a bug for some auto-saved posts missing their title in their social text

0.1.3

  • Added WordPress 4.3 compatibility notice

0.1.2

  • Fixed a bug in hashtags generation

0.1.1

  • Added an explicative screenshot
  • Added some Frequently Asked Questions
  • Small changes to readme.txt

0.1

  • First release.