Skip to:
Content
Pages
Categories
Search
Top
Bottom

Displaying content to specific groups.

  • Avatar of iamdhunt
    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)
  • Avatar of shanebpdev
    shanebp
    Participant

    @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 );
    `

    Avatar of iamdhunt
    iamdhunt
    Participant

    @iamdhunt

    Awesome! That did the trick thank you very much.

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

You must be logged in to reply to this topic.