johnskennedy (@johnskennedy)

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • In reply to: Random Topic Link

    johnskennedy
    Participant

    @johnskennedy

    I have used Stephen’s code above and it works perfectly.

    However, I have 8 forums on my site so if I wanted to add a random button for each separate forum that only selects topics from that forum would I have to create 8 different function ntwb_bbpress_random_single_topic() in my .php and include only a single forum ID every time or is there a better way to implement this? Also, how and where would I add the shortcodes so that they only show on the relevant forum?


    johnskennedy
    Participant

    @johnskennedy

    Thanks for the reply, unfortunately it did not work for me, but off a hunch I cut some code from the .php file, saved it, and then replaced the code and now it seems to work again. Still not sure why but hope this helps someone.

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