WordPress post tiles in custom PHP application : Is it possible to pull tiles of blog posts into my php based website outside of the directory i'm hosting wordpress in? 

Can i use WordPress Post Title and Post Content in my PHP applications.

I have tried this one:

    <?php
    include('/wordpress/wp-load.php');
    ?>
    
    <?php
    $recent_posts = wp_get_recent_posts(array(
    'numberposts' => 5
    ));
    
    foreach($recent_posts as $post) {
    echo '<a href="', get_permalink($post['ID']), '">', $post['post_title'], 
    }
    ?>

