• Works great.

    But if your using WordPress 4.1 youll need to change 3 lines of code in the plugin file, since get_themes() & get_current_themes() were both depricated.

    It’s rather simple:

    wp_content>plugins>wp-custom-post-template>wp-custom-post-template.php

    On lines 85, 86 & 87 change:

    $themes = get_themes();
    $theme = get_current_theme();
    $templates = $themes[$theme][‘Template Files’];

    to:

    $themes = wp_get_themes();
    $theme = wp_get_theme();
    $templates = $theme[‘Template Files’];

    Hope this helps someone ^.^

Viewing 1 replies (of 1 total)
  • In file wp_content>plugins>wp-custom-post-template>wp-custom-post-template.php щn lines 85, 86 & 87 no info


    $themes = get_themes();
    $theme = get_current_theme();
    $templates = $themes[$theme][‘Template Files’];

    In wp_content>plugins>wp-custom-post-template>wp-custom-post-template.php is lines:

    “if(function_exists(‘wp_get_themes’)){
    $themes = wp_get_themes();
    }else{
    $themes = get_themes();
    }
    $theme = get_option( ‘template’ );
    $templates = $themes[$theme][‘Template Files’];
    $post_templates = array();”

    What replaced here? Please, help me!

Viewing 1 replies (of 1 total)
  • The topic ‘Deprication Issue with easy fix’ is closed to new replies.