1

I set up WordPress, everything is fine. It is under a sub-directory of main website and it use same database with the custom developed website. The path is like below:

http://www.blabla.com/blog/blabla-category-name/bla-post-title/

I need to list the latest three posts at main website (out of WordPress). I looked WordPress db, but could not see any cat name at table :/ so how can I generate such link to post from out of WordPress?

appreciate helps!!


just found this article online. working great!!

http://www.corvidworks.com/articles/wordpress-content-on-other-pages

2

2 Answers 2

1

You could parse the RSS feed that Wordpress generates using something like MagicParser. This would allow you to display the most recent posts on your homepage with relative ease.

The preferred method would be to use one of the methods as described by Dav, though.

Sign up to request clarification or add additional context in comments.

Comments

0

Try this sql

select te.name from wp_posts as p 
left join wp_term_relationships as r on ( p.ID = r.object_id )
left join wp_term_taxonomy as ta on ( r.term_taxonomy_id = ta.term_taxonomy_id )
left join wp_terms as te on ( ta.term_id = te.term_id )
where p.ID = 529
and ta.taxonomy = 'category' 

where 529 is the post you want to find the category for.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.