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
- You must be logged in to reply to this topic.