Using Blog Content Outside of WordPress
-
Hi, all,
I’m using WordPress for my personal blog. In addition to WP, my web page has some original HTML and PHP content and a Wiki site. I manually edit an HTML page on my home page to list content that has been added to my site. I would like to automate this process, if possible.
Ideally, I’d like to add a category to my blog called ‘news’. I would then like to add some PHP code to my home page that shows the ‘n’ most recent items in the ‘news’ category. I’ll want to get the date of the topic, the topic title, and a URL to the topic. I’ll use these data to create a table of recent ‘news’ items with links to the topic.
Can anyone help me with this? Where can I learn as to what PHP code can be used to retrieve topics based on category? How can I retrieve the date of the item? Is there a WordPress API that I can use to simplify this or will I have to dig around the source and copy functionality? What is the easiest way to do this?
Thanks!
Scott
- The topic ‘Using Blog Content Outside of WordPress’ is closed to new replies.