Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • vincomatt
    Participant

    @vincomatt

    Another option I had available to me was to print the action of writing a new CPT post to the group activity stream. That worked and I put it on the live environment as well… then the next day (with no changes) the same code stopped working on both our staging and dev website and when the post was created, it submitted it to the sitewide stream rather than the groups stream.

    I’d inserted that CPT activity stream code into a bp-custom.php file within the plugin directory and tested it with an account both with and without admin access.


    vincomatt
    Participant

    @vincomatt

    @venutius

    Thanks for the swift reply. I’ve got it set up so wp username and bp usernames match and when I copy the shortcode output manually back into the toolset shortcode it works fine – so it seems to be something to do with when it’s nested shortcode within shortcode. I’m using a nested shortcode plug-in to enable me to do so.


    vincomatt
    Participant

    @vincomatt

    Thanks @venutius & @shanebp for the help.

    I have it working… sort of.

    I looked into the code of the plugin mentioned and was able to tweak the code to output a list of usernames separated by commas rather than the lists set by the plugin.

    However, when I nest that shortcode within the Toolset Views shortcode, rather than printing the usernames to that space – the view shows posts by ALL users and not the ones returned by the shortcode grabbing the usernames.

    If I copy and paste the output from the shortcode into the view directly – it works.

    A demo of the page can be found here.

    I don’t suppose either of you have any suggestions of where I’m going wrong?


    vincomatt
    Participant

    @vincomatt

    The reason I’m looking to do this via a shortcode is that I already have a Toolset view that can produce the information on a page that I need, and I can drop in the user ids of the group manually and it works – but I want it to be dynamic so that which group it’s displayed on, it can show the correct user ids.

Viewing 4 replies - 1 through 4 (of 4 total)
Skip to toolbar