Search Results for 'code'
-
Search Results
-
I’m looking for a way to automatically assign a forum’s custom taxonomy to all of that forum’s topics.
I recently registered a custom taxonomy that I want to share across all pages, posts, forums and topics, and since I create most of the content on my site, assigning the right taxonomy to pages, posts, and forums is easy. But I’d rather not have to manually assign taxonomy to topics, especially since any of my members can create a new topic at any time.
Is there a way to tell WP to get the taxonomy for the parent forum, and automatically save all topics in that forum with the exact same taxonomy?
(If it helps, this is the code I used to register a custom taxonomy to be used on all pages, posts, forums and topics):
// Add custom taxonomy function postcats_init() { // create a new taxonomy register_taxonomy( 'game-categories', array('post','page','forum','topic'), array( 'label' => __( 'Games' ), 'rewrite' => array( 'slug' => 'game-posts' ), 'hierarchical' => true, 'capabilities' => array( 'assign_terms' => 'edit_pages', 'edit_terms' => 'manage_categories', 'assign_terms' => 'edit_pages' ) ) ); } add_action( 'init', 'postcats_init' );Hi,
I have no idea why but the forum/topic subscribe button is not appearing next to the breadcrumbs in bbpress forums as it should, i have enabled the functionality in the settings. This has never appeared but i’m probably missing something simple.
Is there a way to add this next to the forum title rather than in breadcrumbs? I’m not sure how to call it:
add_action( 'bbp_theme_after_forum_title', 'n8_after_forum_title' ); function n8_after_forum_title() { WHAT DO I ADD HERE?? }WP version: 4.8
BBpress version: 2.5.13Thanks!
LaurenI’ve got bbp style pack already. Some things don’t work and it might be the fault of my host because I had another issue that was caused by my host. When entering a forum, “Create new topic” appears automatically. I would like to remove the automatic “Create new topic” message and create a “create new topic” button. bbp style pack makes the button but won’t remove the automatic message. Can anyone suggest another plugin that will let me do this?
Also, in some of my forums I would like to rename the button from “Create new topic” to something else but only in some of the forums. I’ve been told this can be done with CSS. Can anyone give me the code for this? Thanks.
Topic: HTTP ERROR 500
I am getting a HTTP ERROR 500 when I click on a Forum e.g.: https://ebps.org.uk/forums/forum/biology/
If I click on a post – it works, i.e: https://ebps.org.uk/forums/topic/sporangia-under-the-microscope/
If I click on “All Forums” from the dashboard, I get the 500 error
If I click on “NEW Forum” it works
The error_log says:
functions.php:1800
Stack trace:
#0 /var/sites/e/ebps.org.uk/public_html/wp-includes/class-wp-hook.php(298): bbp_pre_get_posts_normalize_forum_visibility(Object(WP_Query))
#1 /var/sites/e/ebps.org.uk/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)
#2 /var/sites/e/ebps.org.uk/public_html/wp-includes/plugin.php(515): WP_Hook->do_action(Array)
#3 /var/sites/e/ebps.org.uk/public_html/wp-includes/class-wp-query.php(1683): do_action_ref_array(‘pre_get_posts’, Array)
#4 /var/sites/e/ebps.org.uk/public_html/wp-includes/class-wp-query.php(3248): WP_Query->get_posts()
#5 /var/sites/e/ebps.org.uk/public_html/wp-includes/class-wp.php(617): WP_Query->query(Array)
#6 /var/sites/e/ebps.org.uk/public_html/wp-includes/class-wp.php(735): WP->query_posts()
#7 /var/sites/e/ebps.org.uk/public_html/wp-includes/functions.php(955): WP->main(”)
#8 /var/sites/e/ebp in /var/sites/e/ebps.org.uk/public_html/wp-content/plugins/bbpress/includes/forums/functions.php on line 1800This is the code
1793 /** Default ***********************************************************/
1794
1795 // Get any existing post status
1796 $post_stati = $posts_query->get( ‘post_status’ );
1797
1798 // Default to public status
1799 if ( empty( $post_stati ) ) {
1800 $post_stati[] = bbp_get_public_status_id();Any ideas?
The site that hosts my wordpress site told me that they don’t allow membership plugins on wordpress sites. So I can’t make login and register pages and put shortcode in them which is what many people do. My host says users can register and login via a different window which they sent me a picture of. I don’t know how to do an attachment so I’ll describe it. There’s 2 text boxes. The first one is “Username or email address” and the second one is Password. Above the small window is a big white capital W in a blue circle. Below the window is “Register” and “Lost Password”. I assume this is a default login window. This is what my host wants me to use. How do I set this up? Thanks.
Hello,
I wonder if there is any shortcode that Display Topics that Contain Certain Words? Looks like the documentation doesn’t have any content about this.
Thank you!
LeonTopic: I want to set a time limit
case 'popular' : $topics_query = array( 'post_type' => bbp_get_topic_post_type(), 'post_parent' => $settings['parent_forum'], 'posts_per_page' => (int) $settings['max_shown'], 'post_status' => array( bbp_get_public_status_id(), bbp_get_closed_status_id() ), 'ignore_sticky_posts' => true, 'no_found_rows' => true, 'meta_key' => '_bbp_reply_count', 'orderby' => 'meta_value', 'order' => 'DESC' ); break;I want to show just topics posted in a day
I want to remove/disable totally changing email input value from form-user-edit without using hidden input
<input type="hidden" name="email" id="email" value="<?php bbp_displayed_user_field( 'user_email', 'edit' ); ?>" class="regular-text" tabindex="<?php bbp_tab_index(); ?>" />I want user only change display name, bio, and password only how to do it?
Topic: edit.php redirects to groups
In my forum once i create a user and then going to edit his/her profile edit.php redirects to groups. I couldn’t find any code issue. Help me. Thanks in advance.
Topic: edit.php redirects to groups
In my forum once i create a user and then going to edit his/her profile edit.php redirects to groups. I couldn’t find any code issue. Help me. Thanks in advance.
I have newest WordPress and used it to add bbPress. How ever I have added forum as shortcode to my siten page. How ever When is use top menu to add new topic the box where I chose relative parent category till example gaiming, sell, buy does not work. The box is full of those categoires where to put that topic but I cannot select any one of them only no parent stays selected.
Is there somehow how I cand fix this?
Hey there guys… there is a specific element on my bbpress forum that I need to customise and I’ve been through the style crib, the bbpress style sheet, and even the bbpress style pack plugin and can’t sem to find in the code anywhere that will help me customize this element. I have a screen shot but now I realize I can’t use screen shots here. The element is the Reply To: element. I know how to make it non transparent… but I can’t figure out where to set that text color at all. The actual text “Reply To” needs to be a different color so it can be seen. I also think there is a glitch in the boarder as well. Any help would be awesome. Here is a link to my screenshot: http://fjrmbfans.us/wp-content/uploads/2017/08/FORUMscreenshot.jpg you’ll see my issue in the bottom portion. Thanks again for all your help!