Support » Plugin: Category Sticky Post » In an empty category, $post is not an object

  • thrivelinej

    (@thrivelinej)


    In function add_styles() I fixed a warning by changing FROM:

    if( is_archive() && '1' !== get_post_meta( $post->ID, 'category_sticky_post_border', true ) ) {

    TO:

    if( $post && is_archive() && '1' !== get_post_meta( $post->ID, 'category_sticky_post_border', true ) ) {

  • The topic ‘In an empty category, $post is not an object’ is closed to new replies.