Workaround to Override WordPress Shortcode and Display the [] Brackets 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は新しい機能をAPIでショートコードは、ワードプレスの開発者やプログラマーには、投稿で使用するコンテンツを最初からマクロのコードを作成するプラグインを追加した名前を書くこと WordPress version 2.5ワードプレスのバージョン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.この問題は、ワードプレスの記事やページに埋め込むには、ショートコードは、作家のショートコードを同封する必要がある[が、特定の針の中で]ブラケット、 。 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?場合には、ショートコードを書くこととされていないと、正規の一に該当するテキスト、表示、必要があるが、カッコ内に同封する必要がある( " [ "と"]"),ので、偶然の一致でカッコでは、全体のいずれかのテキストは何ですショートコードを作成し、ワードプレスの環境で宣言? For example, WordPress comes built-in with [gallery] shortcode, distracting users ability to type “gallery” word in brackets.たとえば、ワードプレス組み込まで[ギャラリー]ショートコードを入力する"ギャラリー"かっこ内の単語力、ユーザーの気をそらせる。
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.もっと他のプラグインとして受け入れるショートコードを入力する場合はブラケットが消えると魔法のように表示されるいくつかの他のコンテンツタイプのテキスト(可能性)が起こるのは、単に1つのブラケットとブラケットで、影響を受けるのテキスト文字列の間にスペースを残すことができます。 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ワードプレス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のワードプレス2.5 RC2のへのアップグレード後
- Display and Show Feed on HTML Website with FeedBurner BuzzBoostフィードを表示するディスプレイとHTMLのサイトにフィードバーナーBuzzBoostで
- WordPress 2.5 RC2 Released for Downloadワードプレス2.5 RC2のダウンロードをリリース
- WordPress 2.5.1 Released for Downloadワードプレス2.5.1のリリースをダウンロード
- Make WordPress Blog More Secure Using Secret Keyワードプレスのブログをより安全にする秘密鍵を使用して
- Call To Undefined Function: ctype_digit() in WordPress 2.5未定義の関数に請求:ワードプレス2.5 ( ) ctype_digit
- How to Fetch and Show RSS Feeds on WordPress Blog (Atom/RSS Aggregator Plugins)どのように(のAtom / RSSアグリゲータプラグイン)を取得するとワードプレスのブログのRSSフィードを表示する
- Media Buttons Disabler Plugin to Remove “Add Media” Icons in WordPress 2.5メディアボタンDisablerプラグイン" WordPress 2.5のメディアを追加"アイコンを削除する
- Call to Undefined Function get_currentuserinfo() Error in WordPress未定義の関数get_currentuserinfo ( )エラーをワードプレスに請求

































April 17th, 2008 10:51 4月17日、 2008年10:51
[...] reading Workaround to Override WordPress Shortcode and Display the [] Brackets Tags at Tip and [...] [...]レディングワードプレスの回避策を上書きショートコードと表示するには、 [ ]ヒントでブラケットタグと[...]