WordPress Shortcodes

Shortcodes(簡短代碼),這是WordPress2.5版之後新增的功能,可以讓開發人員將功能簡化成方便使用,就像是UBB代碼一樣的方便,這對於熟悉UBB的使用者來說,是件好事情,但前提是該主題要有支援才行,也就是必須將shortcodes寫入function.php,這樣才方便使用,也許以後會變成WordPress內建也說不定。

Shortcodes的使用方式非常簡便,就像:

[showcase]  、[showcase id=“5”]  、[url href=“http://www.smashingmagazine.com”]Smashing Magazine[/url]

原文在Smashingmagazine,有許多資源可以參考,可以應用在url,RSS,AdSense等等……。

轉貼原文的資源分享

WordPress Shortcodes Resources

真的很實用喔 ^_^

  1. Today, I went to the beach with my children. I found a sea shell and gave it to my
    4 year old daughter and said “You can hear the ocean if you put this to your ear.” She placed the shell
    to her ear and screamed. There was a hermit crab inside and it pinched her ear.

    She never wants to go back! LoL I know this is totally off topic but I had to tell someone!

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *