WordPress.org

Support

Support » Plugins and Hacks » [Plugin: WP Featured Content Slider] fix for use of deprecated usage of argument

[Plugin: WP Featured Content Slider] fix for use of deprecated usage of argument

Viewing 3 replies - 1 through 3 (of 3 total)
  • thank cardinalu, I met little more problem,
    when i debug with WP_DEBUG, it appear “

    Undefined variable: post_id in wp-content/plugins/wp-featured-content-slider/featured-content-slider.php on line 91

    And this is the function

    function get_wp_generated_thumb($position) {
    $thumb = get_the_post_thumbnail($post_id, $position);
    $thumb = explode(“\””, $thumb);
    return $thumb[5];
    }

    Could you help me?

    Thank in advance!

    cardinalu
    Member

    @cardinalu

    I’ll give it a look and come back here with a fix, if i’ll figure it out, but not earlier than tomorrow.

    Thanks cardinalu so much, but, when I try to define it by add more line:
    global $post_id;
    Ha ha, warning disapper, but I guess, is it OK?

    And also in dashboard, some posts (not all) will appears this warning:
    Notice: Undefined index: feat_slider in /Applications/MAMP/htdocs/wordpress/wp-content/plugins/wp-featured-content-slider/featured-content-slider.php on line 49

    function feat_meta(){
    global $post;
    $custom = get_post_custom($post->ID);
    $feat_slider = $custom[“feat_slider”][0];

    In this case, the global $feat_slider not working, ha ha ha. Sorry, i’m not good in PHP.
    Many thanks in advance, and have a nice day, cardinalu.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP Featured Content Slider] fix for use of deprecated usage of argument’ is closed to new replies.