Search Results for 'code'
-
Search Results
-
i use twentythirteen theme as my parent theme and bbpress plugin to bulid my forum. In the search results page, the first result format is a bit different with the others.
according to my understanding, the execute order is: page.php->content-search.php->loop-search.php->loop-search-topic.php
in page.php:<div class="entry-content"> <?php the_content(); ?> </div><!-- .entry-content -->in content-search.php:
<?php bbp_get_template_part( 'loop', 'search' ); ?>in loop-search.php:
<?php while ( bbp_search_results() ) : bbp_the_search_result(); ?> <?php bbp_get_template_part( 'loop', 'search-' . get_post_type() ); ?> <?php endwhile; ?>in loop-search-topic.php:
<div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>> </div>If there are three topics,the results should be:
<div class="entry-content"> <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>> <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>> <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>> </div>However, the result is:
<div class="entry-content"> <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>> </div> </div> <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>> <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>>The first element is inside <div class=”entry-content”> tag.
Topic: user redirection issue
My domain is:
forum.mydomain.comI have set an static page as Front Page Displays with following short-codes:
Some Welcome text….
[bbp-forum-index]
[bbp-topic-index]Also I have set an URL to restrict users to redirect if they are not logged in (Under plugin: bbP Members Only).
Now I am facing following issue:
1. If someone visits forum.mydomain.com first time by entering the URL: forum.mydomain.com, yet they are not redirected to page specified under plugin bbP Members Only
Infect they get following info:Some Welcome text….
You do not have permission to view this.
You do not have permission to view this.So they should have redirected to page specified under plugin bbP Members Only. Although if I click on sidebar forums list then they are redirected.
This can be solved out by:
Either redirect to page specified.
Or, this text “You do not have permission to view this.” must display only once.Please help guys to fix me.
Thanks.
Do you know how to count the number of unique people who comment per day/week/month?
Is there a plug-in that will do that?
Or code I can use?
What’s the best way to go about adding a custom page under the bbPress directory (/forums)?
I’ve created a new page in WordPress that uses bbPress shortcodes. I’d like the URL to remain under ‘/forums’ like ‘/forums/new-page’. WordPress automatically converts the directory to /forumsnew-page (due to a conflict with bbPress using /forums)
Any help would be greatly appreciated!
We’re getting an email to noreply@ourwebsite.com every single time someone posts a reply. Looking into
bbpress/includes/common/function.phpstarting on line 1023 it looks like this is the intended behavior. It sends an email to:$do_not_reply = '<noreply@' . ltrim( get_home_url(), '^(http|https)://' ) . '>';…and it BCC’s any users who are subscribed:
wp_mail( $do_not_reply, $subject, $message, $headers );This seems silly. Am I really reading this right? Why can we not disable emails coming to noreply@ ? Big forums will get hundreds of emails a day….