Shortcode API and wordpress category view (2 posts)

  1. pgn4web
    Posted 5 years ago #


    I created a plugin using the "Shortcode API", using the BBCode pluing (http://wordpress.org/extend/plugins/bbcode/) as example.

    I noticed though that the shortcodes created this way are not executed when looking at the "category view" (displaying the list of posts belonging to a give category). Instead the content of the posts in the category view seems stripped of html tags.

    This happens with my pluing and with the BBCode plugin example.

    Is this a normal behaviour or am I missing someting?


  2. pgn4web
    Posted 5 years ago #

    Depending on the wordpress theme in use, the category/tags view might not show the entire post but only an excerpt. Also depending on the theme, the excerpt might get stripped from HTML tags. The embed-chessboard plugin uses the <textarea> and the <iframe> plugin, hence the chessboard display might get broken when in category/tags view. Some themes allows for configuring the excerpt, for instance the atahualpa theme allows specifying which HTML tags should not be stripped from excerpts. By preserving the <p>, <textarea> and <iframe> tags then the chessboard is properly displayed in the category/tags view. Please check the behavior of your theme if the pgn4web chessboard is not displayed correctly when in category/tags view.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.