Skip to:
Content
Pages
Categories
Search
Top
Bottom

Existing WordPress data

  • @igeekout

    Member

    I have about 84 existing wordpress posts. Im trying to create another template in the buddypress theme which is supposed to load these posts from wordpress. But nothing appears.

    I know with wordpress, I create a template, add my code, create a new page, assign the template and bam. New page loads the content I want.

    Doesnt seem to work that way with buddypress does it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • @mercime

    Participant

    Sure you can create a Page Template and use that to create a new page – especially for the “blog” portion of the site. You can create category-buildings.php and that will show up with all your posts in said category.

    Is BuddyPress installed in the same WP where your 84 existing posts are?

    Are you using a child theme of bp-default or a WP theme with BP Template Pack?

    BP/WP versions?

    @igeekout

    Member

    @mercime

    Yes, its all the same install.

    right now, the only loop I was able to get to work is:

    `<?php
    $debut = 0; //The first article to be displayed
    ?>

      <?php
      $myposts = get_posts(‘numberposts=-1&offset=$debut’);
      foreach ($myposts as $post) :
      ?>

    • : <a href="”>

    `

    Ive tried other loops from https://codex.wordpress.org/The_Loop and have had no luck.

    I just get date, title.

    Any ideas.

    @igeekout

    Member

    this worked:

    `

      <?php
      $temp = $wp_query;
      $wp_query= null;
      $wp_query = new WP_Query();
      $wp_query->query(‘showposts=5′.’&paged=’.$paged);
      ?>
      have_posts()) : $wp_query->the_post(); ?>

    • <a href="” rel=”bookmark”>

    `

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Existing WordPress data’ is closed to new replies.
Skip to toolbar