• LeisaAGH

    (@leisaagh)


    I have the Widget Logic and bbPress plugins installed and working. Everything works correctly when I use is_page(‘pagename’) referring to a regular WordPress Page. However, if it is a page from the forum made by bbPress, it doesn’t work. Is there any way to work around this?

    I’m assuming that bbPress does something to the pages that causes Widget Logic to be unable to find the page being referred to.

    https://www.ads-software.com/plugins/widget-logic/

Viewing 5 replies - 1 through 5 (of 5 total)
  • alanft

    (@alanft)

    I don’t use bbPress, but I see it has its own conditional tags

    https://codex.bbpress.org/legacy/template-tags/

    try those and see if that helps.

    Hi!
    I met a similar trouble using Widget Logic and Bbpress.
    When using the tag !is_bbpress() alone, it is working perfectly.
    But when using conditional tags, like :
    !is_page(‘page_name’) || !is_bbpress()
    then the !is_bbpress() is not intrepreted anymore.
    Any idea about what I should do to solve this?

    FYI The current bbPress Conditional Tags are here:
    https://codex.bbpress.org/bbpress-conditional-tags/

    (The link posted previously was for the old bbPress standalone version and not the current v2.x plugin)

    Hi,
    Thank you for your answers.
    I’ve made some others tests using specific bbPress conditional tags and other WP conditional tags.
    It appears that the operator OR (||), and maybe && also, doesn’t work with in any conditonal tags when used in a Widget Logic box area.

    I mean, when using alone any conditional tag, then it’s ok : is_post_type_archive(‘forum’), is_singular(array(‘forum’, ‘topic’, ‘reply’), is_page(‘page_name’), is_single()…
    But when combinating two of them with the || operator, then any of these 2 conditions is working anymore.

    Well… maybe it’s just linked to my configuration (I just don’t know why…).

    Have a nice day.
    mareva

    Thanks Mareva
    !is_bbpress()
    did the job I was looking for. I wanted some of the sidebar stuff off in the forum and some forum search etc on.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Widget Logic does not work with bbpress pages’ is closed to new replies.