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

  1. Preeminent
    Posted 3 years 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?



  2. Chris Reynolds
    Plugin Author

    Posted 3 years 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:

         $progress = get_post_meta( $post->ID, 'your_progress_value', true );
         echo do_shortcode( "[wppb progress=$progress]" );
  3. Preeminent
    Posted 3 years ago #

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

  4. Chris Reynolds
    Plugin Author

    Posted 3 years ago #

    No problem. Thanks for the positive review! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Progress Bar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic