Title: Using PHP to Embed WordPress Posts
Last modified: August 19, 2016

---

# Using PHP to Embed WordPress Posts

 *  [jamesbull](https://wordpress.org/support/users/jamesbull/)
 * (@jamesbull)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/using-php-to-embed-wordpress-posts/)
 * I’ve got a little bit of a question for you guys… I’m a huge fan of wordpress
   and have used it numerous times in the past to build blogs for people. Great 
   tool. and now I’m finally setting it up for my own site.
 * I have my personal portfolio website located here:
 * [http://www.jamesbull.ca/test/](http://www.jamesbull.ca/test/)
 * As you can see the site uses a javascript slider effect to scroll the different
   pages. I would like to turn the “Recent News” page into a page that displays 
   my recent blog posts.
 * My blog is located here:
 * [http://www.jamesbull.ca/projects/wptest/](http://www.jamesbull.ca/projects/wptest/)
 * So I’d like to figure out a PHP script that can pull the 3or5 most recent blog
   posts and embed them into a div on my personal portfolio site. Since both sites
   are hosted on the same server, I would think that this should be possible and
   was wondering if anybody had any idea’s??

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [jamesbull](https://wordpress.org/support/users/jamesbull/)
 * (@jamesbull)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/using-php-to-embed-wordpress-posts/#post-892775)
 * anybody know if this is even possible?
 *  [andy-bedford](https://wordpress.org/support/users/andy-bedford/)
 * (@andy-bedford)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/using-php-to-embed-wordpress-posts/#post-892843)
 * Hi James try this tutorial
 * [http://www.tutorialized.com/view/tutorial/How-To-Display-Wordpress-Posts-On-Your-PHP-Site./39484](http://www.tutorialized.com/view/tutorial/How-To-Display-Wordpress-Posts-On-Your-PHP-Site./39484)
 * worked for me, however I would like to know if it is “secure” php so if you know
   anything about that please let me know dude cheers
 *  [buddha-trance](https://wordpress.org/support/users/buddha-trance/)
 * (@buddha-trance)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/using-php-to-embed-wordpress-posts/#post-892844)
 * See if this can help too.
 * [http://www.corvidworks.com/articles/wordpress-content-on-other-pages](http://www.corvidworks.com/articles/wordpress-content-on-other-pages)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Using PHP to Embed WordPress Posts’ is closed to new replies.

## Tags

 * [embed](https://wordpress.org/support/topic-tag/embed/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [script](https://wordpress.org/support/topic-tag/script/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [buddha-trance](https://wordpress.org/support/users/buddha-trance/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/using-php-to-embed-wordpress-posts/#post-892844)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
