Home WordPress post title in custom PHP application
Reply: 0

WordPress post title in custom PHP application

user613 Published in May 27, 2018, 3:32 am

Is it possible to pull post title 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:


$recent_posts = wp_get_recent_posts(array(
'numberposts' => 5

foreach($recent_posts as $post) {
echo '<a href="', get_permalink($post['ID']), '">', $post['post_title'], 

I Want to use posts on another PHP site also.

Thanks in advance.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.317226 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO