WordPress.org

Support

Support » Plugins and Hacks » CMS Page Order » [Resolved] Does not work on CPT?

[Resolved] Does not work on CPT?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Bill Erickson

    @billerickson

    By default it is limited to the ‘page’ post type, but you can use the ‘cmspo_post_types’ filter to change the post types it is applied to:

    Change post types – CMS Page Order

    Agnes

    @agneslesagegmailcom

    Thanks!
    Then it would not work for both, yet I guess?

    Plugin Author Bill Erickson

    @billerickson

    It can work on as many post types as you like. Here’s how to add it to post, page, event, and rotator.

    /**
     * Update post types for CMS Page Order
     * @author Bill Erickson
     * @link http://www.billerickson.net/code/change-post-types-cms-page-order
     *
     * @param array $post_types
     * @param array $post_types modified
     */
    function be_sort_post_types( $post_types ) {
    	return array( 'post', 'page', 'rotator', 'event' );
    }
    add_filter( 'cmspo_post_types', 'be_sort_post_types' );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Does not work on CPT?’ is closed to new replies.
Skip to toolbar