Search Results for 'code'
-
Search Results
-
WordPress version 4.8
Genesis Theme version 2.5.2
bbPress version: 2.5.12
Site URL: http://staging.c-rad.org/My site has a members section for which all of the pages in it have a template applied to it with this simple logic:
if ( ! is_user_logged_in()) { wp_login_form(); return; } else { // add the members only sidebar and show the content }Is it possible to install bbPress such that I can apply this template logic to all forum pages?
I also want all forum pages to exist under a parent page. e.g. c-rad.org/members/forums.
I can place my forum there (c-rad.org/members/my-forum) using a shortcode, but then all other forum pages go to their default locations (c-rad.org/topic/my-topic).
I tried changing the Forum Root to ‘members’, but then when I visit that page, the page template with my logic is removed.
Just wondering if anyone has come across this before – I’m attempting to create a subforum for every postcode district in the UK of which there are 2000+ (this may seem a bad idea but having considered many different options it seems the best/simplest for my use case at the moment)
I’ve imported the forums via the ‘WP CSV’ plugin, and they seem to have imported fine, but on the front end when viewing the full forum list it only shows the first 50. Is this by design? Or could it be something buggy I have done?
If it’s unavoidable I guess I can make them sub-subforums of a smaller number of postcode areas.
Thanks
Topic: Link to latest post
Hello,
I’m trying to make a link to a latest topic in forum page. I achieved topic name by bbp_forum_last_topic_title function, but can’t figure out how to get a link for latest topic.
I’ve tried to pull out something like this, but it links to forum index.
<p><a href="<?php echo $link; ?>"><?php bbp_forum_last_topic_title(); ?></a></p>