Plugin Directory

Changeset 2024654


Ignore:
Timestamp:
02/04/2019 02:24:28 PM (7 years ago)
Author:
nikolam
Message:

Fix service type filter in the backend

Location:
sermon-manager-for-wordpress/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sermon-manager-for-wordpress/trunk/includes/admin/class-sm-admin-post-types.php

    r1911118 r2024654  
    301301
    302302        // Type filtering.
    303         $terms  = get_terms( 'wpfc_service_type' );
     303        $terms  = get_terms(
     304            array(
     305                'taxonomy'   => 'wpfc_service_type',
     306                'hide_empty' => false,
     307            )
     308        );
    304309        $output = '';
    305310
     
    308313
    309314        foreach ( $terms as $term ) {
    310             $output .= '<option value="' . sanitize_title( $term->name ) . '" ';
     315            $output .= '<option value="' . $term->slug . '" ';
    311316
    312317            if ( isset( $wp_query->query['wpfc_service_type'] ) ) {
  • sermon-manager-for-wordpress/trunk/readme.txt

    r2024621 r2024654  
    124124## Changelog ##
    125125### 2.15.14 ###
     126* New: Add compatibility for Pro theme
    126127* Fix: Improve [latest_series] shortcode
    127 * New: Add compatibility for Pro theme
     128* Fix: Service Type filter in backend not working when slug is different from default
    128129
    129130### 2.15.13 ###
Note: See TracChangeset for help on using the changeset viewer.