Workaround to Override WordPress Shortcode and Display the [] Brackets Tags דרכים לעקיפת הבעיה כדי לעקוף WordPress Shortcode ולהציג את בסוגריים [] תגיות
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 הוסיף פונקציה חדשה בשם shortcode כי עם ה-API למפתחים WordPress ו programmers לכתוב plugins כי ליצור מאקרו קודי לשימוש החל מ לכתוב תוכן 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. בעיקרו של דבר shortcode הוא נוח לשימוש בתכונה בלוגרים שבו רק צריך להוסיף סוגר-delineated מחרוזות שניתן קסם מורחבת בשעה Runtime כדי לשקף בפועל תוכן דינמי., ללא צורך להתמודד עם מורכבות ה-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. הבעיה היא כי כדי להטביע shortcode ב-WordPress הודעות או דפים, מחברים צריך לסגור את shortcode ב [ו] בסוגריים, עם עוקץ מסוימים בפנים. 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? מה אם אתה צריך לכתוב ולהציג את אמיתי ואמיתי טקסט, שהוא לא shortcode, אבל צריך לסגור בתוך סוגריים ( "[" ו "]"), ולכן coincidentally, את כל הטקסט עם סוגריים הוא אחד נוצר shortcodes והכריז על WordPress הסביבה? For example, WordPress comes built-in with [gallery] shortcode, distracting users ability to type “gallery” word in brackets. לדוגמה, WordPress מגיע מובנה עם [גלריה] shortcode, distracting משתמשים היכולת להקליד "גלריה" המילה בסוגריים.
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. אם הטקסט סוגר שתקליד קסם נעלמות ומופיעות כמו סוג תוכן אחר (סביר להניח שיקרה עוד יותר כפי plugins לאמץ shortcode), אתה יכול פשוט להשאיר רווח בין אחד סוגר את המושפעים מחרוזת טקסט בתוך סוגר. 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. הדרך המומלצת יותר היא סוג של סוגריים באמצעות מספריים אופי הפניה, aka תיניטלה ISO-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 ] . כפי שמוצג בתרשים לעיל, להקליד "[" ולוודא שהיא תמיד מופיעה בשם "[" מבלי להשפיע על ידי shortcode, הקלד [להחליף את [. להחיל אותו], אשר אמור להיות מוחלף עם] ;.
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. שלא כמו האדם תרגום, תרגום מכונה אינו מבין את הדקדוק, סמנטיקה, תחביר, idioms של שפה טבעית, ולכן לעיתים קרובות לא מדויקים ו לייצר באיכות נמוכה טקסט שהוא מטעה ו מובנת. Thus, please refer to לכן, אנא פנה אל original English article המאמר המקורי באנגלית when in doubt. במקרה של ספק.
Related Articles מאמרים קשורים
- WordPress 2.5 Released for Free Download WordPress 2.5 Released for free הורד
- WordPress 2.5 RC2 Released for Download WordPress 2.5 Released RC2 להורדה
- Display and Show Feed on HTML Website with FeedBurner BuzzBoost הצגת ולהראות Feed ב-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 קריאה תפקיד מוגדר: 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 קריאה תפקיד מוגדר: 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 תמונה או מדיה פלאש Uploader לא גליון עבודה ב IE7
- Disable WordPress 2.5 Flash Image/Video/Media Uploader with Plugin השבת WordPress 2.5 פלאש תמונה / וידאו / מדיה Uploader עם Plugin










































April 17th, 2008 10:51 אפריל 17, 2008 10:51
[...] reading Workaround to Override WordPress Shortcode and Display the [] Brackets Tags at Tip and [...] [...] קריאה פתרון כדי לעקוף WordPress Shortcode ולהצגת בסוגריים [] תגיות בשעה עצה ו [...]