Tham khảo tài liệu 'wordpress jquery - part 31', công nghệ thông tin, đồ họa - thiết kế - flash phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | jQuery and WordPress Reference Guide Now the fun part Pick any template page in your theme and use the broughtby shortcode by simply adding in broughtby Wherever you paste that broughtby shortcode in your theme s template files the This page is brought to you by the letter Z text with a link to the letter s page will appear Bonus You are not restricted to using this shortcode in just your template files Paste it directly into a post or page through the Administration panel you ll get the same result. And you guessed it the output from shortcodes are easily leveraged and enhanced by jQuery If you have an enhancement that might take a bit more HTML markup than the WYSIWYG editor in WordPress can handle and the site s content editor is overwhelmed by switching over to the HTML view creating a solution with a shortcode may be just what you need For example it would be much easier for your client to add a set of square brackets with some parameters than mark up a definition list which the basic WYSIWYG editor doesn t allow for. This would turn dl dt a href Event Name and Location a dt dl Event description dl dl Into a simpler . event title Event Name and Location description Event description url 286 Appendix In addition to helping out WordPress content editors with markup shortcodes are a wonderful way to shortcut your time if you re a busy WordPress content author. Even if you re not creating your own theme from scratch you can easily add your own shortcodes to any theme s file and ramp up your productivity. Those of you more comfortable with PHP can take a look at WordPress Shortcode API and see how to extend and make your shortcodes even more powerful by adding parameters to them http Shortcode_API. Summary Hopefully after taking a run through this appendix you ve dog-eared it and trust that you ll be back anytime you have a quick question about usage or syntax with the top jQuery and WordPress issues most WordPress developers have