Search Results for 'code'
-
Search Results
-
Topic: HELP!
Hello everyone. I’m freaking out right now. I just added this code to my functions.php:
add_post_type_support(‘forum’, array(‘thumbnail’));
function ks_forum_icons() {
if ( ‘forum’ == get_post_type() ) {
global $post;
if ( has_post_thumbnail($post->ID) )
echo get_the_post_thumbnail($post->ID,’thumbnail’,array(‘class’ => ‘alignleft forum-icon’));
}
}
add_action(‘bbp_theme_before_forum_title’,’ks_forum_icons’);It was supposed to allow me to add a featured image to forums and it would act as a icon to the left of it. The problem is that when I added a featured image, it screwed everything up. I’ve taken the image off and deleted the code and it’s still all messed up. If you have any clue, please help!
Here is the site: evrgaming.com
I am using the [bbp-forum-form] shortcode in the frontend. It creates a forum fine, when there is a parent chosen and a description put in. But it does not create a forum when I leave the description or the parent empty.
This seems odd, as in the wordpress admin area you are not forced to enter a description or choose a parent forum. There it creates a forum without parent and description.Is there a way to disable this behaviour on the frontend and allow for “root” forums without a description?
Thanks,
SaschaI am new to bbPress development and have been searching for how to do this for a while now, so I figured I’d ask here.
I am wanting to display a loop of all of the forum categories on every page of the forum (as a type of navigation). I am able to display it in the forum root, but when it goes into a category, the loop becomes the forums rather than the categories.
In loop-forums.php, for example, I have the following code:
<?php do_action( 'bbp_template_before_forums_loop' ); ?> <ul id="forum-subhead-nav"> <?php while ( bbp_forums() ) : bbp_the_forum(); if (bbp_is_forum_category()) { ?> <li> <a class="bbp-forum-title button-link" href="<?php bbp_forum_permalink(); ?>"><?php bbp_forum_title(); ?></a> </li> <?php } ?> <?php endwhile; ?> </ul>I was wondering if someone can help me out so it loops all of the forum categories, and that doesn’t change depending on the forum.
Thanks
Topic: Forum Import Tool
I’ve been struggling for a while now to get the forum import tool to run efficiently. I notice that for some forums, the mysql query code is supplied, but for others it is not. It seems that the process would run a lot faster if I performed the entire operation in mysql instead of using the import tool. I have ~2M posts I need to import. Does anyone have the MYSQL queries for converting Xenforo to BbPress?
Thanks!