Pulling wordpress posts into phpld homepage

Discussion in 'Directories' started by Nima, Aug 9, 2012.

  1. #1
    I'm trying to pull my wordpress posts (in /blog/) folder into phpld homepage (in root folder).

    I'm putting the php code below in main.tpl to pull the wordpress posts in. Code works fine if I put it in a php page by itself in the root folder but when I put it inside phpLD all of a sudden it redirects the homepage to /wp-admin/install.php page.

    I'm not sure how phpld and Wordpress are interfering with each other. I'm hoping someone here can help

    
    <?php
    require('/home/nima/public_html/blog/wp-blog-header.php');
    ?>
    <?php query_posts('showposts=5'); ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class="BlogFeeds">
    <div class="BlogFeedThumb">
    <?php $post_image = thesis_post_image_info('thumb'); ?>
    <?php echo $post_image['output']; ?>
    </div>
    <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Read The Entire Post"><?php the_title(); ?></a></h3>
    <?php the_excerpt(); ?>
    </div>
    <?php endwhile;?>
    
    Code (markup):

    Code is in a file called blog-feed.php that I've created myself and am pulling it into main.tpl using the code below. I know this part of it works though.

    
    {php}
    include ("/home/nima/public_html/my_includes/blog_feed.php");
    {/php}
    
    Code (markup):

     
    Nima, Aug 9, 2012 IP
  2. Nima

    Nima Well-Known Member

    Messages:
    3,489
    Likes Received:
    243
    Best Answers:
    0
    Trophy Points:
    175
    #2
    Anyone has any idea on how to approach this?

    Thanks
     
    Nima, Aug 15, 2012 IP
  3. syted

    syted Notable Member

    Messages:
    2,086
    Likes Received:
    319
    Best Answers:
    0
    Trophy Points:
    290
    #3
    I'd approach it by posting on the phpld forum.
     
    syted, Aug 15, 2012 IP
  4. Nima

    Nima Well-Known Member

    Messages:
    3,489
    Likes Received:
    243
    Best Answers:
    0
    Trophy Points:
    175
    #4
    I did. I'm having them take a look at it soon too
     
    Nima, Aug 15, 2012 IP