WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Sorry for posting such a noob question but I am totally stuck and don't know what I am looking for.

So basically I have a buddypress website with a static homepage.

On the homepage I need to add a dynamic area where the admins can add a news story, this story will change maybe once a month.

I just need to know what I am looking for, is it widgets or sidebars or something else?

Once again sorry for the noob question, I am new to all the WP/BP stuff.

Its the latest version of WP/BP.


share|improve this question
Are you using the default buddypress theme? – Pollux Khafra Aug 29 '12 at 15:08
No I am using a custom theme based upon the default theme. – Kyle Hudson Aug 29 '12 at 15:13
up vote 1 down vote accepted

You need to open up your custom child theme and add a loop to the index.php. Or if you want it in the sidebar then you add it to sidebar.php with a conditional check if you only want it to appear on the homepage. If you only want to show one post you add something like this.

  global $wp_query;
  $args = array(
    'cat' => #, //add the category id of the posts
    'posts_per_page' => 1, // set how many posts to show in the loop
$wp_query = new WP_Query( $args );
while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
   //setup the contents of the loop
   <h2><?php the_title(); ?></h2>
   <p><?php the_excerpt(); ?></p>
<?php endwhile; ?>
share|improve this answer
Thanks Pollux, that worked. – Kyle Hudson Aug 29 '12 at 15:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.