• 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 ) ) {

    • This topic was modified 7 years, 11 months ago by thrivelinej.
  • The topic ‘In an empty category, $post is not an object’ is closed to new replies.