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

Text to Custom Field

描述

The plugin works similar as shortcodes with important differences:

  • It looks for any tag in the post with the following format: {cf your_custom_field_name=your_custom_field_value}
  • For any tag found, it create a custom field for that post.
  • The tag is erased from the post.

How to use

Type in anywhere in a post:
{cf your_custom_field_name=your_custom_field_value}

Examples:

  • {cf thumbnail=http://wordpressready.com/wp-content/uploads/oneringtorulethemall.jpg}
  • {cf posticon=/wp-content/uploads/posticon.ico}
  • {cf my_custom_color=#22fb30}

This three examples written inside the post will create three custom fields with respectives values
when you publish the post.
After publishing, the tag inside the post are deleted. No other information is erased.

Notes

  • Because the way the plugin works, it will run fine with ANY desktop blogger(Windows Live Writer, Scribefire, Qumana, w.Bloggar, Zoundry
    , Thingamablog, Blod Desk, Flock, Post2Blog, Bleezer, you name it)
  • The plugin can be used even inside the wordpress editor (though what would it be the point?)
  • You can use any number of custom field for post.
  • Reserved characters: ‘{cf’ and ‘}’,because it conflicts with the delimiters.
  • After the post, the tags are automatically erased.
  • If the custom field is already present, its value will be replaced.

螢幕截圖

安裝

  1. Unzip the ZIP file and drop the folder straight into your wp-content/plugins/ directory.
  2. Activate the plugin ‘Text to Custom Field’ through the ‘Plugins’ menu in WordPress.

常見問題

  • What if I use the tag twice? for example {cf my_custom_value=Anna} , {cf my_custom_value=Jessy} in the same post?
    Answer: The plugin scans the post from top to bottom and update the custom fields in that order.
    In the strange case you do that, the last tag will take precedence over the first one, where
    the final value would be my_custom_value=Jessy

  • Do I need to use quotes (‘) or double quotes (“) to assign values to the custom fields?
    Answer: No quotes or double quotes are needed. But if you use it, they would be assigned to the custom field, so be careful!

  • What if there is already a custom field with that name?
    Answer: Any custom field with same name is updated

  • What if I want to delete a custom field?
    Answer: This version does not delete a custom field. The best it can do is assign an empty value to a custom field as {cf my_custom_field= }

  • Any character or exception to consider?
    the ‘}’ can’t be inside an evaluation. For example: {cf my_custom_field=hello {there} } won’t work as expected since the plugin can’t
    decide what is the last character. The final evaluation would be my_custom_field=hello {there.
    In the same fashion the character combination ‘{cf’ can’t be inside an assignation.

  • What if I have another question related to this plugin?
    Answer: Contact with admin@wordpressready.com for any questions.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Text to Custom Field” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Text to Custom Field 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

=1.1=

  • using {cf custom_field_name } to avoid conflict with shortcodes. cf is an abreviation of ‘custom fields’
  • Improved documentation

=1.0=

  • Initial release (not for public)