Workaround to Override WordPress Shortcode and Display the [] Brackets Tags Для Відхилити WordPress короткий і відображення [] дужки Теги
WordPress has added a new function named shortcode with API that WordPress developers and programmers to write plugins that create macro codes for use in post content beginning from WordPress додав нову функцію з ім'ям короткий API WordPress, що розробникам та програмістам писати плагіни щоб створити макрос коди для використання на посаду зміст, починаючи з WordPress version 2.5 WordPress версії 2.5 . . Essentially shortcode is an easy-to-use feature where bloggers just need to insert a bracket-delineated strings that can be magically expanded at runtime to reflect actual dynamic contents., without the need to deal with complex HTML and embed codes. По суті являє собою короткий прості у використанні функції, де блогери просто потрібно вставити кронштейн-розмежовані рядки, яка може бути розширена магічним під час виконання програми, щоб відобразити фактичні динамічного вмісту., Без необхідності займатися складними HTML і вставляти коди.
The problem is that to embed shortcode in WordPress posts or pages, authors have to enclose the shortcode in [ and ] brackets, with certain sting inside. Проблема полягає в тому, що для вбудовування в короткий WordPress постів і сторінок, автори повинні докласти короткий в [і] дужках, з деякими жало всередині. What if you need to write and display the a true and genuine text, which is not shortcode, but have to enclose within brackets (”[" and "]“), and so coincidentally, the the whole text with brackets is one of the shortcodes created and declared in WordPress environment? Що робити, якщо вам потрібно писати і показувати істинний і справжній текст, який не є коротким, але й вкласти в дужках ( "[" і "]"), і т.д. До речі, на весь текст у дужках є одним з shortcodes створені і оголосив в середу WordPress? For example, WordPress comes built-in with [gallery] shortcode, distracting users ability to type “gallery” word in brackets. Наприклад, WordPress приходить вбудованого в систему [Галерея] короткий, відволікаючи користувачів здібності типу "Галерея" слово в дужках.
If the text in bracket that you type magically disappear and appear as some other content type (will likely to happen more as more plugins embrace shortcode), you can simply leave a space between one of the bracket and the affected text string in the bracket. Якщо текст на кронштейні, що ви чудесним чином зникають типу і, мабуть, як деякі інші тип контенту (швидше за все, відбудеться в більшою мірою як плагіни охоплюють більш короткий), ви можете просто залишити простір між одним з кронштейна та постраждалих текстову рядок у кронштейні. But this workaround would make the text appears to be weird and not beautiful. Але цей обхідний б текст, як видається, дивно і не красиво.
The more recommended way is to type the brackets using numeric character reference, aka ISO Latin-1 code. Чим Рекомендований спосіб полягає в тому, щоб ввести дужки використанням числовий характер ведення ака ISO Latin-1-код. The “[" and "]” brackets do not have HTML entity, thus users will have to remember the numeric character reference for the brackets. В "[" і "]" дужки немає HTML особи, таким чином, користувачам доведеться запам'ятати числовий характер ведення дужки.
[ => [
] => ]
As shown in figure above, to type “[" and make sure that it's always appear as "[" without affecting by shortcode, type [ replacing the [ . The same applied to ] , which should be replaced with ] . Як показано на малюнку вище, типу "[" і переконайтеся, що він завжди з'являється в якості "[" без шкоди шляхом короткий типу [заміна [. Те ж саме відноситься і до], який повинен бути замінений] ;.
IMPORTANT : You're reading a machine translated page which is provided "as is" without warranty. ВАЖЛИВО: Ви читаєте машина переведена сторінку, яка надається "як є" без гарантії. Unlike human translation, machine translation does not understand the grammar, semantics, syntax, idioms of natural language, thus often produce inaccurate and low quality text which is misleading and incomprehensible. На відміну від людини перекладу, машинний переклад не розуміє граматика, семантика, синтаксис, ідіоми природної мови, таким чином, часто роблять неточні і низька якість тексту, який вводить в оману і незрозумілим. Thus, please refer to Таким чином, зверніться до original English article Англійська оригінальні статті when in doubt. , Коли сумніви.
Related Articles Статті по темі
- WordPress 2.5 Released for Free Download WordPress 2,5 Звільнено для безкоштовного скачування
- WordPress 2.5 RC2 Released for Download WordPress 2,5 RC2 Released для завантаження
- Display and Show Feed on HTML Website with FeedBurner BuzzBoost Дисплей і показувати HTML на веб-сайт з FeedBurner BuzzBoost
- WordPress 2.5.1 Released for Download WordPress 2.5.1 Released для завантаження
- Call to Undefined Function: wp_constrain_dimensions() When Uploading Images or image_downsize() in Gallery/Media Library in WordPress 2.5 Звернутися за Undefined Функція: wp_constrain_dimensions () при завантаженні зображень або image_downsize () в Галерея / Медіа Бібліотека в WordPress 2,5
- Make WordPress Blog More Secure Using Secret Key Зробити блог WordPress Більш безпечний допомогою секретного ключа
- Call To Undefined Function: ctype_digit() in WordPress 2.5 Call To Undefined Функція: ctype_digit () в WordPress 2,5
- PHP Fatal Error on Call to Add_Query_Var in Taxonomy.php After Upgrading to WordPress 2.5 RC2 PHP фатальна помилка на заклик до Add_Query_Var на Taxonomy.php після оновлення для WordPress 2,5 RC2
- Fix WordPress 2.5 Image or Media Flash Uploader Not Working Issue in IE7 Фікс WordPress 2,5 чи Image Uploader Медіа Flash не працює випуск в IE7
- Disable WordPress 2.5 Flash Image/Video/Media Uploader with Plugin Відключити WordPress 2,5 Flash Image / відео / Медіа-Uploader з плагінів










































April 17th, 2008 10:51 17 квітня 2008 10:51
[...] reading Workaround to Override WordPress Shortcode and Display the [] Brackets Tags at Tip and [...] [...] Для читання Відхилити WordPress короткий і відображення [] дужки тегів на Раду і [...]