• Hi Nick,
    I have just added this to the template-filters.php file. If you choose to give options to the plugin in the future, choosing to alphabetize the output would be a great one!

    // All sheet music shortcode.
    function sml_shortcode_all_sheet_music() {
    $pieces = get_posts( array(
    ‘numberposts’ => ‘-1’,
    ‘orderby’=> ‘title’,
    ‘order’ => ‘ASC’,
    ‘post_type’ => ‘sheet_music’,
    ) );
    return sml_sheet_music_search_form() . sml_table_view_template( $pieces );
    }

  • The topic ‘Alphabetical Sorting’ is closed to new replies.