Skip to:
Content
Pages
Categories
Search
Top
Bottom

Displaying content to specific groups.


  • iamdhunt
    Participant

    @iamdhunt

    Hi, I just added news feed functionality to my groups thanks to the jNewsticker plugin I got from Code Canyon. I was able to add it to the bottom of the group header by adding this code to my group-header.php: “

    However I’m looking for a way to have it only display to certain groups. I checked out some of the conditional tags and tried this: “ with sports-fitness being the slug but it didn’t work. Any help or ideas? Thanks in advance.

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

  • shanebp
    Moderator

    @shanebp

    Please put your code between back-ticks `
    Try this:

    `
    global $bp; // you might not need the global
    if ( bp_is_groups_component() && ‘sports-fitness’ == bp_current_item() )
    jnewsticker_display( 0 );
    `


    iamdhunt
    Participant

    @iamdhunt

    Awesome! That did the trick thank you very much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Displaying content to specific groups.’ is closed to new replies.
Skip to toolbar