Support » Plugin: Credit Tracker » Undefined Index: only_current_post

  • Resolved petefuseloft

    (@petefuseloft)


    Hi,

    I’m using the credit tracker plugin. I just updated to the new version (in my dev environment) and I’m getting an error:

    Notice: Undefined index: only_current_post in [my/local/server]/wp-content/plugins/credit-tracker/credit-tracker-functions.php on line 61

    I noticed that this variable was included in a pull request that was merged 9 days ago.

    I’m displaying featured images as a background image, so I’m showing the featured image’s caption via shortcode, as follows:

    <?php echo do_shortcode( '[caption id="'.get_post_thumbnail_id( $post->ID ).'"]<p>%author%</p>[/caption]' ); ?>

    This was working without throwing any errors until I updated to the new version of the plugin just now.

    Thanks for any insight/help you may be able to provide.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Undefined Index: only_current_post’ is closed to new replies.