WordPress.org

Ready to get started?Download WordPress

Forums

P2
post_formats and categories and set post categories (3 posts)

  1. valuser
    Member
    Posted 2 years ago #

    Prior to p2 1.4 it was possible to have another input tab (say "Alarms") so that the input choices were "Status Update - Blog Post - Quote - Link- Alarms"

    This could be achieved by adding

    <li><a id="alarms"<?php if ( $post_type == 'alarms' ) : ?> class="selected"<?php endif; ?> href="<?php echo site_url( '?p=alarms' ); ?>" title="<?php esc_attr_e( 'Alarms', 'p2' ); ?>"><?php _e( 'Alarms', 'p2' ); ?></a></li>

    to <div id="postbox"> in post.php

    and adding "alarms" to the $accepted_post_cats in ajax.php

    so if somebody clicked Alarms and inputed something in the input box it was recorded in Category Alarms.

    I appreciate that post_formats is the way to go But how can I incorporate the above functionality (kind of front-end category setting - set post categories??) in p2 v 1.4.?

    Any ideas very welcome

    http://wordpress.org/extend/themes/p2/

  2. Jay Versluis
    Member
    Posted 2 years ago #

    Hi valuser,

    I think I have an answer for you: here's how we can bring back categories as they were in versions prior to 1.4.0:

    http://wpguru.co.uk/2012/04/how-to-bring-back-post-categories-in-p2/

  3. valuser
    Member
    Posted 2 years ago #

    Works ! Many, many thanks for this.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags