Search Results for 'code'
-
Search Results
-
Here is the ACF shortcode for a custom field. What bbPress template/file do I place this shortcode so that the custom field displays on the frontend of a topic post. Where do I place it.
[acf_views view-id=”60″ name=”Lake Point Marker 2″]
Hello,
Please help me out with a code which I can use to display user’s topics started and replies created.
For example, being able to display this page
with only the “topic started” and “replies created” menu links.
I will appreciate a custom code which I can use to archive this.
NB; on the page where I want to display topics started/replies created, I’m also displaying a topic form using bbpress short code. I’d like the display of topics started/replies created to come after the bbpress topic form…
Thanks in anticipation that someone will help me out here with a code 🙏
Hi,
WordPress 6.2.2 running Twenty Twenty-Three theme, BBPress 2.6.9.
Moved the only hidden (pending) topic from a public forum to a private forum, and published it. Topic, and moved replies all look fine in the private forum.
The public forum from whence it was moved still has this:This forum has NN topics (+1 hidden), NNN replies …
As expected, clicking the
+1 hidden
doesn’t change the number of topics displayed. Repaired the forum, cleared site cache, no change to the+1 hidden
.
If a detail in the move topic process was missed, please advise.
Thanks.Hello, i am using this code Part to show latest Topics in certain Forums. It is giving the correct Topic ids but wont show them except of original Language even if i opened it in a different language first.
<section class=”topics”>
<div id=”bbpress-forums” class=”bbpress-wrapper”>
<h3><?php echo __(‘Recent Topics’, ‘WordPress’); ?></h3>
<?php
$topic_parents = array();
foreach ($match_parent_ids as $match_parent_id) {
$match_ids = get_children(array(
‘post_parent’ => $match_parent_id,
‘post_type’ => ‘forum’,
‘fields’ => ‘ids’,
));foreach ($match_ids as $match_id) {
$topic_ids = get_children(array(
‘post_parent’ => $match_id,
‘post_type’ => ‘topic’,
‘fields’ =>’ids’,
));foreach ($topic_ids as $topic_id) {
echo $topic_id;
}$topic_parents = array_merge($topic_parents, $topic_ids);
}
}
$args3 = array(
‘post__in’ => $topic_parents,
‘post_type’ => ‘topic’,
‘post_status’ => bbp_get_public_status_id(),
‘posts_per_page’ => 10,
‘orderby’ => ‘freshness’,
‘order’ => ‘DESC’,
);if (bbp_has_topics($args3)) :
bbp_get_template_part(‘loop’, ‘topics’);
else :
bbp_get_template_part( ‘feedback’, ‘no-topics’ );
endif;?>
</div>
</section>
Thanks for helping