Skip to:
Content
Pages
Categories
Search
Top
Bottom

Show single topic on homepage with shortcode or php


  • Stephen B
    Participant

    @wordpmoon12

    I want to show a single topic on my homepage, on top of the page.
    When I use the shortcode [bbp-single-topic id=$topic_id] it pulls the bbpress forum sidebar widget as well. I am not sure if it’s incompatibility with the theme or normal behavior.

    Is there PHP code I could use instead to pull a single topic? Maybe I could then use that to create a custom template for the homepage.

    Thanks in advance

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

  • Robin W
    Moderator

    @robin-w

    ok, not totally sure I understand.

    so you are putting the actual topic_id in ?

    eg

    [bbp-single-topic id=265]

    and not sure I understand what ‘it pulls the bbpress forum sidebar widget ‘ means – do you have a link to a live example?


    Stephen B
    Participant

    @wordpmoon12

    Thanks for replying and yes, I am using the topic ID and it’s showing the correct topic.
    The issue is that the shortcode is displaying the forum sidebar in addition to the topic.
    You can see here a screenshot of the source code https://ibb.co/2PS9qW1

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