Skip to:
Content
Pages
Categories
Search
Top
Bottom

single forum shortcode not working


  • smartIt
    Participant

    @smartit

    Hi,
    I created a forum, his id is 3569159-2 and it contains one topic.

    in this page of my website http://radiotounsi.com/?page_id=4862
    I tried to display this forum by using the shortcode [bbp-single-forum id=$3569159-2] but nothing is displayed, but other bbpress shortcodes work just fine like [bbp-forum-index] and [bbp-login]
    I switched the theme to twenty sixteen for testing purpose, same problem

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

  • Robin W
    Moderator

    @robin-w

    The correct code would be

    [bbp-single-forum id='3569159-2']

    but I suspect ‘3569159-2’ is the url not the post ID as post ID are a whole number and what you want

    so go to

    Dashboard>forums and select all forums

    If you hover of ‘edit’ of then forum you want, you’ll see at the bottom left of the screen

    url…post.php?post=12345&action=edit

    it is the 12345 that you want to put in the shortcode


    Robkk
    Moderator

    @robkk

    Robin might be on to something with the url thing. Robins suggestion works fine, but I usually suggest looking into using the Reveal IDs plugin, as it really makes it easier by just adding a column in posts like Forums > All Forums list and users list in the WordPress backend.

    https://codex.bbpress.org/getting-started/faq/#findpostid


    smartIt
    Participant

    @smartit

    Thanks Robin your suggestion was the true one, that was really tricky to find out.

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