Kevin Schaul
Kevin Schaul

Visual journalist/hacker covering AI

A simple solution for integrating Django and WordPress RSS

· Kevin Schaul

Today I am releasing django-wordpress-rss – a Django template tag for integrating Wordpress articles. It’s available today via PyPI.

This code was developed as an integral piece of the Seattle Times Election Guide. I made it simple to dynamically pull in content based on a WordPress category.

How simple?

pip install django-wordpress-rss
WORDPRESS_RSS_BASE_URL = 'http://www.kevinschaul.com'
{% get_wordpress_rss "category-slug" as wordpress_items %}
<ul>
{% for item in wordpress_items %}
    <li><a href="{{ item.href }}">{{ item.title }}</a></li>
{% endfor %}
</ul>

Have ideas for improvement? Open up an issue on GitHub.