Skip to:
Content
Pages
Categories
Search
Top
Bottom

Displaying posts by calling more than one tag


  • fabwintle
    Participant

    @fabwintle

    Hi,

    I am aware I can use the shortcode [bbp-single-tag id=181] to display forum posts associated with the tag 181. However, I’d like to pull content assoociated with more than one tag.

    Could someone please help me?

    Thank you

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

  • fabwintle
    Participant

    @fabwintle

    Am I allowed to bump this here?


    Robkk
    Moderator

    @robkk

    Create a custom view instead.

    Add this php code snippet into your functions.php file in your child theme or in a functionality plugin.

    function rkk_register_custom_views() {
    	bbp_register_view( 'viewid', __( 'View Name' ), array( 'topic-tag' => 'tag1, tag2' ) );
    }
    add_action( 'bbp_register_views', 'rkk_register_custom_views' );

    Then you can put this shortcode in a page.

    [bbp-single-view id=”viewid”]


    fabwintle
    Participant

    @fabwintle

    Thanks very much Robkk,

    I didn’t know anything about custom views. Thank you so much!

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