Search Results for 'code'
-
Search Results
-
Hi all
I just add bbPress to my website running Deadline theme and with small tweaks all looks great! Except homepage – I want main area in the middle of the homepage to look like http://bbpress.org/plugins/ – showing new, latest and most viewed posts from my 4 forums. How can I do this?
Pleas note I can not use custom page, but have to add code to the existing homepage. I tried few versions, but didn’t get exactly the same results. All I was able to pull is 4 posts with code: <?php bbp_get_template_part( ‘bbpress/content’, ‘archive-topic’ ); ?>. But that is obviously not what I need. Is there a simple way to get results like on http://bbpress.org/plugins/
I am not coder (obviously), but can do all CSS work without any issue.
I hope this is not repeated questions, but I tried to find solution and no luck.
Cheers & Thanks
Dean
<div id="sub_header">
<?php
/***
* This conditional determines where exactly what page you are one.!
**/
if(is_home()){
/* Blog Page */
echo '<h1 class="page_title">';
echo 'Welcome to my Blog';
echo '</h1>';
echo '<h2 class="page_blurb">';
echo ' just another wordpress site';
echo '</h2>';
}else if(is_front_page()){
/* Landing Page */
echo get_post_meta($post->ID, "Landing Header", true);
}else{
echo '<h1 class="page_title">';
echo get_post_meta($post->ID, "page title", true);
echo '</h1>';
echo '<h2 class="page_blurb">';
echo get_post_meta($post->ID, "page blurb", true);
echo '</h2>';
}
?>
</div>This the default site of my bbpress forums:
http://localhost/mysite/forums/
And I try to make page for forum using the short code [bbp-topic-index] :
this is the link:
http://localhost/mysite/forum/
and I try to edit this code above:
}else if(is_page('forum')){
/* Forum Page */
echo '<h1 class="page_title">';
echo 'Forum Support';
echo '</h1>';
echo '<h2 class="page_blurb">';
echo 'Press community';
echo '</h2>';and it works fine only in page (forum) http://localhost/mysite/forum/
but when I click all the the content in the forums my Title and Blurb has gone.
WHat I want to do is my sub header page title and page blurb will appear in any page in forums.
ANYONE knows how to fix this or how to add code?
I’m just a beginners in wordpress
your reply is much appreciated,
Thank’s