Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Shane,

    The content there was just for testing purposes. CSS aside, it fell apart as soon as I tried to call any of the functions.

    I ended up creating a custom action hook, calling it at the end of post content on all pages and then coding up a custom function (available in the now-updated gist) to cross-check the permalink slug with the user’s profile information.

    It was pretty much a copy + paste job from there on out.

    Thanks for your help!

    I’ve created a gist here:

    https://gist.github.com/2888847

    The problem, I suppose is more to do with WordPress shortcodes. I’m sure the members loop would work but I’m struggling to get it to load from within the confines of a shortcode.

    Hi Shane,

    Everything is working nicely aside from the members loop. Basically, I’ve got a series of child pages. If the user’s profile info matches the child page permalink then they need to display. I had planned on using a shortcode to allow the site admin to display this members list wherever they wanted to but I’m having real trouble trying to insert the members loop into a shortcode. It causes other bits of the site to display incorrectly or brings the entire site down altogether.

    Could I use an if statement to load the members loop at the end of post content on these pages? How would you go about it?

    Thanks

    John

    Matches the page e.g. extended profile value = research group, page name = research group.

    Using the content in the link you provided, I’ve built a function that outputs a list of user ids exactly as I need it.

    Can a list of members (based on user ids) be called using this line alone or is it necessary to code the entire loop into my shortcode?

    ‘return bp_has_members($get_these_members)’

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