Ultimate Branding. Admin panel tips issue.

This is from module "Admin panel tips":

$content = $post->post_content;
if ( ! empty( $content ) ) {
printf( '<div class="apt-content">%s</div>', apply_filters( 'the_content', $content ) );
}

Note that it hooks the_content. But that hook only applies within the loop.
This code isn't running in the loop, it's a custom iteration through an array of tips posts.

Right above that code is a call to hook the_title. Similar issue, hook handlers are expecting a post ID and other data that isn't available.

$title = $post->post_title;
if ( ! empty( $title ) ) {
printf( '<h4>%s</h4>', apply_filters( 'the_title', $title ) );
}
  • Rupok

    Hi Tony G,

    Thanks a lot for reporting. I'm pinging our SLS (Second Level Support) team to check this. We will update you here as soon as we get anything from them regarding this.

    Please keep in mind, our SLS people work around the clock and they have to deal with lots of critical issues and other things. So it may take a little while for them to check this and provide their valuable opinion on this. I will appreciate your patience.

    Have a nice day. Cheers!
    Rupok