Search Results for 'code'
-
Search Results
-
This is regarding http://saveourgrace.com/forums/
I believe I followed all the instructions properly. However, initially, my WordPress “Page” with link above was blank. I found advice at http://bbpress.org/forums/topic/bbpress-forum-blank-pages/ that it may be a theme issue, so I simply added the short code [bbp-forum-index].
This got the page working as you can see it now. It properly shows the “Fundraising” forum. However, the number of topics is listed as 0, and when I click on the forum name, I get the otherwise blank page at http://saveourgrace.com/forums/forum/fundraising/ .
I did add a topic per the instructions, and confirmed on the topics list page that my topic belongs to the fundraising forum.
I am using the theme “Academica” version 1.2.2. I changed to “Twenty Thirteen” temporarily, and things seemed much better. I could see and get into the topic. If I figure out how to make the topic show with “Academica”, am I nevertheless going to find myself fighting an endless battle with this theme? Or should one more fix take care of it? (Of course, if it is just one more fix, what might that fix be?)
Note I’m using WordPress 3.9.1.
Thanks very much,
HelmutI’m using an Avada child theme and have inserted the search shortcode. Unfortunately it is showing two forms. I’m sure I could get rid of one by doing a display:none on the relevant div but I’d like to know why this is happening. You can see the page here, whilst the code is here:
[one_half last="no"]Welcome to the Itinerant Writers Club. This is a closed group but anyone interested in discussing travel writing is invited to join. It is a dedicated group where, each month, every essay written by the members is critiqued by the others. Here's why you should join: [checklist icon="pencil" iconcolor="#6dd622" circle="yes"] <ul> <li>High rate of published members</li> <li>Dedicated, monthly critique of your work</li> </ul> [/checklist] [bbp-search] [/one_half] [one_half last="yes"]<tt>[bbp-forum-index]</tt>[/one_half]Hello
I am quite a newbie in regards to web design/development, especially wordpress and bbpress are quite tricky to learn when not knowing anything about php etc.
For about 5 months i have been hacking away and pasting existing code to create what I hope to be a nice allround bbpress/buddypress theme.
It is still being worked on but I would love some feedback on my progress.
Thanks in advance
Peter HamiltonOut of the box, bbpress shows topics from a particular forum when you are on that forum’s archive page. Makes sense. If that forum has a sub-forum, it will link to those sub-forums, but it won’t show the actual topics from that sub-forum.
I’m trying to modify the default bbpress loop on a forum page (loop-topics.php) to include the sub-forum topics.
Here’s an explanation:
Forum A
Sub-forum A1
Sub-forum A2
Forum B
Sub-forum B1
Sub-forum B2
So when viewing Forum A’s archive page, I’d like to show topics from Forum A, sub-forum A1 and sub-forum A2.The code needs to be dynamic in order to work with whatever parent forum archive a user is on.
You can pass wp_query args into bb_has_topics(), but I can only only come up with code that shows topics from one forum – not multiple forums.
To better explain what I’m working with, here’s an example of a loop that grabs topics from the parent forum:
<?php $parents = get_post_ancestors( $post->ID ); $id = ($parents) ? $parents[count($parents)-1]: $post->ID; $parent = get_page( $id ); ?> <?php $bbp_loop_args = array('post_parent' => $parent->ID, 'post_type' => 'topic'); ?> <?php if ( bbp_has_topics($bbp_loop_args) ) : ?> <?php while ( bbp_topics() ) : bbp_the_topic(); ?> <?php bbp_get_template_part( 'loop', 'single-topic' ); ?> <?php endwhile; ?> <?php endif;?>Any ideas on how this can be achieved?