Skip to:
Content
Pages
Categories
Search
Top
Bottom

Any shortcodes in footer breaks on pages of bbpress


  • archux
    Participant

    @archux

    Hi

    This is a major issue with bbpress and I could not find a resolution to it. I found couple of similar requests but no one have full resolution.

    Basically, if page can be recognized as is_bbpress() true than the footer shortcodes breaks.

    How to fix that? Is there some patch?

Viewing 6 replies - 1 through 6 (of 6 total)

  • Robin W
    Moderator

    @robin-w

    can you give an example – eg of a footer shortcode that breaks and what bbpress page


    archux
    Participant

    @archux

    The function is_bbpress() is for any page of bbpress

    Does not matter, it is account or forum or topic… on all pages…
    Footer is built with visual composer…

    If i use a shortcode to display forum index, the footer works fine. as soon i click into form:

    https://<domain>/forums/forum/<forum name>/ footer breaks
    https://<domain>/forums/topic/<topic name>/ footer breaks
    https://<domain>/forums/user/<user name>/ footer breaks

    It becomes as: [vc_row full_width=”stretch_row” css=”…” ….]…….[/vc_row]

    Looks like on those page the WordPress function do_shortcode is disabled/unactivated…

    Do this make more clear on what pages and what happens with footer?


    Robin W
    Moderator

    @robin-w

    so if you don’t use VC, does it break ?


    Robin W
    Moderator

    @robin-w

    just tried a shortcode in the footer of my test site running twentyten, and it works on both bbpress and non bbpress pages using the text widget


    archux
    Participant

    @archux

    Thank you for input
    I found what caused issue.

    the call for visual composer footer in a shortcode was:

    apply_filters( ‘the_content’, $the_post->post_content );

    The apply of do_shortcode to $the_post->post_content before echo fixed the text format output of shortcodes and footer now works.

    Thank you.


    Robin W
    Moderator

    @robin-w

    great – glad you are fixed !!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Skip to toolbar