Forum Replies Created
-
Make subdomain forum.protikhon.com or use child themes
In reply to: Featured sliderThe question is outdated, but I also needed a slider. Today I use “Yet Another Related Posts Plugin” + “Related Posts Slider“. It works for me.I added a shortcode in a page template forum. Maybe it will help someone.
In reply to: Reduce the description of the forumWith the CSS does not suit me, do not double content I need to cut in one place. I found the file loop-single-forum.php <div class=”bbp-forum-content”><?php bbp_forum_content(); ?></div> if it would be replaced by the_excerpt, the decision to come to me. I want to see short description
In reply to: How to draw a conclusion of posts in the profileHere’s the code works for me:
<?php $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author)); ?> <!-- The Loop --> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <l i> <a hr ef="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"> <?php the_title(); ?></ a>, <?php the_time('d M Y'); ?> in <?php the_category('&');?> </l i> <?php endwhile; else: ?> < p><?php _e('No posts by this author.'); ?></ p> <?php endif; ?> <!-- End Loop -->
In reply to: Reduce the description of the forum@jesmin13, Ask your question in another topic.
In reply to: Reduce the description of the forumNo, I was on the page of this forum you need a great description. A short description must be on the category page forum
In reply to: Number of topics per page post_typeThank you Robin!
This code works for me.
function bbp_single_replies_show($args) {
if(is_singular( 'download' )) {
$args['posts_per_page'] = 3 ;
$args['max_num_pages'] = 1;
}
return $args;
}
add_filter('bbp_before_has_replies_parse_args','bbp_single_replies_show');
Now I have a custom page type post comments remove, and set the theme forum with the number of responses 3. Thank you very much.In reply to: Number of topics per page post_typeUnfortunately I learn php 10 months, and did not know too much. I add this code:
function bbp_single_replies_show($args) {
$args['posts_per_page'] = 3 ;
return $args;
}
add_filter('bbp_before_has_replies_parse_args','bbp_single_replies_show');
it does not work for me. I looked at your plugin, but highlight the desired fragment, I could not. I thought it would be easy, you can help me?In reply to: Shortcode on the page phpOh great, Robin. It works for me. Thank you very much!
<?php
$idbbp = get_post_meta($post->ID, 'idbbp', true);
$forum_id = bbpress()->current_forum_id = $idbbp;
$x='[bbp-single-topic id ="'.$forum_id.'"]';
echo do_shortcode($x);
?>
In reply to: Shortcode on the page phpI installed the plugin Easy digital downloads that creates custom record types post_type = download. I edited single.php file removed <? Php comments_template ();?> And I want to insert the code to show the theme of the forum bbpress renamed to the new file single-download.php
In the custom field on the product page I insert ID Forum.In reply to: Shortcode on the page phpHi, Robin!
I want to replace on the page comment form on the relevant topic in the forum. To do this, on each page I create a custom field in which prescribe ID created threads.
echo do_shortcode( ‘[bbp-single-forum id forum id =”custom_field”]‘ );
does not work.