WordPress.org

Ready to get started?Download WordPress

Forums

Progress Bar
[resolved] More than one bar at a time? (4 posts)

  1. Preeminent
    Member
    Posted 1 year ago #

    Loving this plugin! Great work! I am really hoping there is a way to use it more than once at a time on the same site? I'm using it in an advanced custom field, and calling the field(your progress bar) in a custom post type. Each post has a custom field that displays your progress bar. The problem is that there needs to be a way for each post to have a different progress bar going. Right now, each post is just outputting what is in the 'progress-bar' field. The progress bar field contains the shortcode for a progress bar. So every post is sharing the same progress bar right now. Any way to make this work?

    Thanks!

    http://wordpress.org/extend/plugins/progress-bar/

  2. Chris Reynolds
    Member
    Plugin Author

    Posted 1 year ago #

    Yeah, are you outputting the progress bar in the custom post type with a do_shortcode? If so, you could add the progress value for that post in a custom field or custom meta value and add it to the do_shortcode, like this:

    <?php
         $progress = get_post_meta( $post->ID, 'your_progress_value', true );
         echo do_shortcode( "[wppb progress=$progress]" );
    ?>
  3. Preeminent
    Member
    Posted 1 year ago #

    Thank you so much! Perfect! I really appreciate you responding to my question so quickly.

  4. Chris Reynolds
    Member
    Plugin Author

    Posted 1 year ago #

    No problem. Thanks for the positive review! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic