Search Results for 'code'
-
Search Results
-
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
Hi
It is easy to customize backend buttons with the pugin “Post Editor Buttons Fork”, but it does work only in the backend. How I could add and remove buttons in front-end. I would like to add at least [SPOILER][/SPOILER] tag and i would lke to use [CODE][/CODE] insteaf of the default code button.Where is the code, which defines editor? Could I hardcode changes, which I want?
Controlling the graphic editor TinyMCE Advanced might be more difficult. Is the alternatives for TinyMCE andvanced in the front-end. I would be nice to get.
I have a temporary solution by using an additional menu. See https://www.sanaristikkofoorumi.net/wordpress/forums/topic/uusia-ominaisuuksia/?view=all#post-28829
With the latest releases when navigating to a forum (not the forum index), any Elementor code is gone. Same when using just a sidebar or blocks.
I found an old advice here https://kriesi.at/support/topic/bbpres-no-sidebar-in-topics/ but unclear where the mentioned sidebar.php is located (perhaps theme specific).
-
Other things I’ve tried
- Configured to use the same forum slug (forum, no root)
- Disabled the main theme, use the latest WordPress default theme.
- Disabled a redirection add-on.