Title: phpLD and WordPress redirect to install.php
Last modified: August 20, 2016

---

# phpLD and WordPress redirect to install.php

 *  [Nima](https://wordpress.org/support/users/mrgoodfox/)
 * (@mrgoodfox)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/phpld-and-wordpress-redirect-to-installphp/)
 * I’m using WordPress (in **/blog/**) folder and phpLD (directory software) on 
   our homepage.
    I’m trying to pull a feed of the latest blog posts into the phpLD
   homepage and am having problems.
 * The code below works if I put it in a php file by itself but as soon as I put
   it in the phpLD homepage it redirects the homepage to **wp-admin/install.php**.
   Please not that this is NOT /blog/wp-admin/install.php but wp-admin/install.php(
   from the root).
 * I think somehow phpLD is trying to make it part of its own CMS.
 *     ```
       <?php
       require('/home/USER/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;?>
       ```
   
 * phpLD uses SMARTY language so I’m using the following code in their .tpl file:
 *     ```
       {php}
       require("/home/USER/public_html/blog/wp-blog-header.php");
       {/php}
       {php} query_posts('showposts=5'); {/php}
       {php} while (have_posts()) : the_post(); {/php}
       <div class="BlogFeeds">
       <div class="BlogFeedThumb">
       {php} $post_image = thesis_post_image_info('thumb'); {/php}
       {php} echo $post_image['output']; {/php}
       </div>
       <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Read The Entire Post"><?php the_title(); ?></a></h3>
       {php} the_excerpt(); {/php}
       </div>
       {php} endwhile;{/php}
       ```
   
 * Again, the path and code work just fine if I put the code in a page by itself
   but not from within phpLD.
 * I found this thread from before that might be helpful (but didn’t get anywhere
   with it myself)
    [http://wordpress.org/support/topic/codeigniter-and-wordpress-redirect-to-installphp?replies=5](http://wordpress.org/support/topic/codeigniter-and-wordpress-redirect-to-installphp?replies=5)
 * I’ve also started a thread with phpLD folks on their forum:
    [http://www.phplinkdirectory.com/forum/showthread.php?t=45162](http://www.phplinkdirectory.com/forum/showthread.php?t=45162)
 * Thanks a bunch for your help.

The topic ‘phpLD and WordPress redirect to install.php’ is closed to new replies.

## Tags

 * [phpld](https://wordpress.org/support/topic-tag/phpld/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Nima](https://wordpress.org/support/users/mrgoodfox/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/phpld-and-wordpress-redirect-to-installphp/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
