I'm looking to modify the P2 (v 1.2.2) front page post form. I don't have a site to reference as I am developing locally at the moment.
Along the top of the post form, I'd like my blog's WP categories to appear, starting with the existing "status" post (which would be the default post category) The user could choose to select a "post type" which is actually a category. Each category aside from "status" can use the default 'blog post' icon which is a tack. I'd want to make sure the specific category posts displayed a title field. The status post does not, and does not need to.
Status | Category 1 | Category 2 | Etc... (I have 7 categories)
Would anyone be willing to help me out here?
In a ideal world, these category buttons might be dynamically driven by my actual list of categories, but I'm also up for just manually adding them to post-form.php and any associated theme files.
I have found my starting place in post-form.php but am just not quite there in my WP familiarity to execute this mod.
<ul id="post-types"> <li><a id="status"<?php if ( $post_type == 'status' ) : ?> class="selected"<?php endif; ?> href="<?php echo site_url( '?p=status' ); ?>" title="<?php _e( 'Status Update', 'p2' ); ?>"><?php _e( 'Status Update', 'p2' ); ?></a></li> <li><a id="post"<?php if ( $post_type == 'post' ) : ?> class="selected"<?php endif; ?> href="<?php echo site_url( '?p=post' ); ?>" title="<?php _e( 'Blog Post', 'p2' ); ?>"><?php _e( 'Blog Post', 'p2' ); ?></a></li> </ul>
Thanks for looking, I welcome all suggestions, even if that suggestion is to pay a WP professional for this mod. ;)