• hello,

    I created a plugin using the “Shortcode API”, using the BBCode pluing (https://www.ads-software.com/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?

    Thanks.

Viewing 1 replies (of 1 total)
  • Thread Starter pgn4web

    (@pgn4web)

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘Shortcode API and wordpress category view’ is closed to new replies.