Jinbom Heo
Jinbom Heo

Reputation: 7400

Using wordpress category content in other site

I have two site. (not real domain)

one is www.companydomain.com : normal php based web site other is www.my-wordpressblog.com : site made by wordpress

in my wordpress blog, there is a category and its list of posts. I want to display the category and its posts in the company's site. here is a image to clearify my explaination.

enter image description here

I tried to use iframe. but iframe loaded the endire my blog in the area. I just want to display category title and its list in my company's site.

is it possible?

and it's better when I click the post, post's content shoud be display in the given area.

Upvotes: 0

Views: 63

Answers (1)

KodeFor.Me
KodeFor.Me

Reputation: 13511

You have to add the following code into your other web site :

<?php 
define('WP_USE_THEMES', false);
require('./wp-blog-header.php');
?>

and then you can get any info you like from the wordpress into the other web site.

For more information read WordPress documentation : http://codex.wordpress.org/Integrating_WordPress_with_Your_Website

Upvotes: 2

Related Questions