Adding progress bar to blog template.

    $funder_id = (int) $wp_query->get_queried_object_id();
    if ($funder_id)
    echo do_shortcode('[progress_bar id="' . $funder_id . '" style="dark" show_title="no" show_totals="yes"]');

I want the progress bar to show foreach fundraising project on my blog template.
Running the current code on my template-post.php file retrieves the progress bar into the content, but I'm not getting the same result on blog-template.

Any help would be greally appreciated.