Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
JavaScript PHP CSS
branch: master

Merge branch 'MultipleCategories'

latest commit c7016f23bb
Jay Versluis authored
Failed to load latest commit information.
i returned project from Child Theme to Fork again
inc updated files to match P2 - Version 1.5.2
js updated files to match P2 - Version 1.5.2
languages updated files to match P2 - Version 1.5.2
.gitignore added .gitignore
404.php returned project from Child Theme to Fork again
README.md updated readme and tweaked seperator to a comma
attachment.php returned project from Child Theme to Fork again
author.php updated files to match P2 - Version 1.5.2
category.php added category archive file with category description
comments.php returned project from Child Theme to Fork again
entry.php updated readme and tweaked seperator to a comma
footer.php added footer attribution, fixed undefined variable
functions.php updated files to match P2 - Version 1.5.2
header.php returned project from Child Theme to Fork again
index.php added tweaks as discussed in my article
p2-readme.txt updated files to match P2 - Version 1.5.2
p2-style.css updated files to match P2 - Version 1.5.2
page.php added Page Template - no more "Updates from xxx" on pages
post-form.php clarified where P2 Categories starts as comments
readme.txt updated readme and tweaked seperator to a comma
rtl.css returned project from Child Theme to Fork again
screenshot.png updated screenshot
search.php returned project from Child Theme to Fork again
sidebar.php returned project from Child Theme to Fork again
single.php returned project from Child Theme to Fork again
style-iphone.css returned project from Child Theme to Fork again
style-print.css returned project from Child Theme to Fork again
style.css added Page Template - no more "Updates from xxx" on pages
tag.php returned project from Child Theme to Fork again

README.md

P2 Categories

This is a Fork of Automattic's P2 Theme, with added support for posting into categories via a handy drop-down menu on the front page.

This project has evolved from an article I've written which explained how to bring back posting into categories. The full process is explained here: http://wpguru.co.uk/2013/10/how-to-add-drop-down-categories-to-automattics-p2-theme/

What served as a working example is now a fully working theme which is compatible with Automattic's wonderful P2 (which is sadly no longer in development).

I have included several community suggested bug fixes and improvements that have not yet made it into P2 Core.

Installation

This entire project is a WordPress Theme. Download and install just like any other theme, either by uploading this repo as a ZIP, or by searching for "p2" under Appearance - Themes - Install.

How does P2 Categories work, and how do I use it?

Simply write your post from the front page (as you do on P2), then select a category from the drop down menu and hit post.

The menu only shows existing categories, even empty ones. You cannot create new categories from the front page though. To do so, please use the admin interface and head over to Posts - Categories, then add a new category.

Further Reading

I've explained how these changes are made here: http://wpguru.co.uk/2013/10/how-to-add-drop-down-categories-to-automattics-p2-theme/

You can find a demo of the original P2 theme by Automattic here: http://p2theme.com

Check out my P2 User Guide at http://p2guide.wordpress.com

This theme is under review on WordPress.org:

Something went wrong with that request. Please try again.