Workaround to Override WordPress Shortcode and Display the [] Brackets Tags Workaround để Ghi đe WordPress ngắn và Hiển thị các [] dấu ngoặc Tags

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 đã có thêm một chức năng mới được đặt tên ngắn với các API cho WordPress phát triển và lập trình để viết bổ sung vĩ mô mà tạo ra mã số cho sử dụng trong các nội dung bắt đầu từ đăng bài WordPress version 2.5 WordPress phiên bản 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. Chủ yếu là ngắn dễ sử dụng tính năng blog nơi mà chỉ cần chèn một bracket-delineated strings có thể được mở rộng, tại magically runtime để phản ánh thực tế năng động, nội dung., Mà không cần phải đối phó với phức tạp HTML và nhúng mã số.

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. Nhưng vấn đề là ngắn để nhúng trong các bài viết WordPress hoặc các trang web, tác giả phải xây những ngắn trong [và] dấu ngoặc đơn, với một số sting bên trong. 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? Điều gì xảy ra nếu bạn cần phải viết và trình bày một văn bản đúng sự thật và chính hãng, mà không phải là ngắn, nhưng có phải xây bên trong dấu ngoặc ( "[" và "]"), và coincidentally như vậy, thì toàn bộ văn bản có dấu ngoặc đơn là một trong những shortcodes tạo và tuyên bố trong WordPress môi trường? For example, WordPress comes built-in with [gallery] shortcode, distracting users ability to type “gallery” word in brackets. Ví dụ, WordPress có built-in với [thư viện] ngắn, distracting người sử dụng khả năng để loại hình "thư viện" từ trong dấu ngoặc đơn.

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. Nếu các văn bản trong bracket mà bạn gõ magically biến mất và xuất hiện như một số loại nội dung khác (sẽ có khả năng xảy ra nhiều hơn là để bổ sung thêm vây ngắn), bạn có thể đơn giản chỉ để lại một khoảng trống giữa một trong những bracket và chịu ảnh hưởng của văn bản trong chuỗi bracket. But this workaround would make the text appears to be weird and not beautiful. Nhưng workaround này sẽ làm cho văn bản xuất hiện để được lạ và không đẹp.

The more recommended way is to type the brackets using numeric character reference, aka ISO Latin-1 code. Các chi tiết được đề nghị là cách để nhập các ký tự dấu ngoặc đơn bằng cách sử dụng số tham chiếu, aka ISO Latin-1 mã. The “[" and "]” brackets do not have HTML entity, thus users will have to remember the numeric character reference for the brackets. Những "[" và "]" dấu ngoặc đơn không có mã HTML tổ chức, do đó người dùng sẽ cần phải ghi nhớ các số tham chiếu cho các ký tự có dấu ngoặc.

[ => [
] => ]

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 ] . Như được hiển thị trong hình ở trên, để gõ "[" và chắc chắn rằng nó luôn luôn xuất hiện như là "[" mà không ảnh hưởng đến của ngắn, loại [thay thế cho [. Điều này cũng áp dụng cho], mà phải được thay thế bằng] ;.

IMPORTANT : You're reading a machine translated page which is provided "as is" without warranty. Lưu ý: Bạn đang đọc một máy phiên dịch trang web là cung cấp "như là" mà không có bảo hành. 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. Không giống như con người dịch, dịch thuật máy tính không hiểu được ngữ pháp, NGHĨA, cú pháp, thành ngữ tự nhiên, ngôn ngữ, do đó thường không chính xác và các sản phẩm kém chất lượng văn bản đó là gây hiểu nhầm và incomprehensible. Thus, please refer to Vì vậy, xin vui lòng tham khảo original English article Tiếng Anh bản gốc bài viết when in doubt. khi nghi ngờ.



One Response to “Workaround to Override WordPress Shortcode and Display the [] Brackets Tags” Để đáp ứng một trong những "Ghi đè Workaround để WordPress ngắn và Hiển thị các [] dấu ngoặc Tags"

  1. Workaround to Override WordPress Shortcode and Display the [] Brackets Tags (Excerpt) » My Digital Life Workaround để Ghi đe WordPress ngắn và Hiển thị các [] dấu ngoặc Tags (Trích) »Kỹ thuật số Cuộc sống của tôi
    April 17th, 2008 10:51 17 tháng tư, 2008 10:51
    1 1

    [...] reading Workaround to Override WordPress Shortcode and Display the [] Brackets Tags at Tip and [...] [...] Đọc Workaround để Ghi đe WordPress ngắn và Hiển thị các [] dấu ngoặc đơn ở Tags Mẹo và [...]

Leave a Reply Để lại một trả lời

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Bạn có thể sử dụng các thẻ:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Đăng ký nhận xét tính năng đã bị vô hiệu hoá. To receive notification of latest comments posted, subscribe to Để nhận được thông báo về ý kiến mới nhất được đăng, đăng ký với Tip and Trick Comments RSS feed Mẹo và Trick Comment nguồn cấp dữ liệu RSS or hoặc register to receive đăng ký để nhận được new comments in daily email digest. Các ý kiến mới trong thư điện tử tiêu hàng ngày.
Custom Search

Incoming Search Terms for the Article Tìm kiếm các điều khoản cho các Điều

wordpress shortcode wordpress ngắn - -- wordpress gallery shortcode wordpress thư viện ngắn - -- wordpress shortcodes wordpress shortcodes - -- wordpress youtube shortcode wordpress youtube ngắn - -- shortcode wordpress ngắn wordpress - -- gallery shortcode thư viện ngắn - -- wordpress wordpress - -- wordpress override function wordpress ghi đè lên chức năng - -- wordpress shortcode not working wordpress ngắn không hoạt động - -- gallery shortcode wordpress thư viện ngắn wordpress - -- wordpress brackets wordpress dấu ngoặc - -- wordpress shortcodes not working wordpress shortcodes không làm việc - -- override wordpress function chức năng ghi đè lên wordpress - -- wordpress gallery short code wordpress thư viện mã ngắn - -- wordpress short code wordpress ngắn mã - -- wordpress override gallery wordpress ghi đè lên thư viện - -- wordpress shortcode feed wordpress ngắn nguồn cấp dữ liệu - -- shortcodes wordpress shortcodes wordpress - -- wordpress override functions wordpress ghi đè lên chức năng - -- wordpress override shortcode wordpress ghi đè ngắn - -- wordpress override gallery shortcode wordpress ghi đè lên thư viện ngắn - -- gallery shortcode not working thư viện ngắn không hoạt động - -- wordpress shortcode youtube wordpress ngắn youtube - -- wordpress override wordpress ghi đè - -- gallery shortcode example thư viện ngắn ví dụ - -- youtube shortcode youtube ngắn - -- override function wordpress ghi đè lên chức năng wordpress - -- wordpress gallery shortcode override wordpress ngắn ghi đè lên thư viện - -- wordpress gallery shortcode replace wordpress ngắn thay thế thư viện - -- excerpt shortcode trich ngắn - -- override gallery wordpress ghi đè lên thư viện wordpress - -- wordpress gallery shortcode example wordpress ngắn ví dụ thư viện - -- wordpress shortcode excerpt wordpress ngắn trich - -- wordpress 2.5 gallery shortcode wordpress 2,5 thư viện ngắn - -- flickr shortcode Flickr ngắn - -- wordpress shortcode comments wordpress ngắn ý kiến - -- wordpress override html wordpress ghi đè html - -- display wordpress media gallery wordpress phương tiện thông tin hiển thị thư viện - -- wordpress gallery override wordpress ghi đè lên thư viện - -- wordpress gallery excerpt wordpress thư viện trich - -- wordpress call shortcode from function wordpress gọi ngắn từ các chức năng - -- wordpress gallery shortcode not working wordpress ngắn không hoạt động thư viện - -- using wordpress gallery shortcode wordpress ngắn bằng cách sử dụng thư viện - -- html entities wordpress shortcode html nhân wordpress ngắn - -- enable wordpress shortcode wordpress cho phép ngắn - -- wordpress shortcode flickr wordpress ngắn Flickr - -- wordpress short code youtube wordpress ngắn mã youtube - -- display brakets hiển thị brakets - -- override WordPress functions chức năng ghi đè WordPress - -- youtube shortcode wordpress youtube ngắn wordpress - --