• I love your Progress Tracker plugin! Thank you so much for building and providing it.

    I am wondering if there’s a function I can include in my functions.php page that will allow me to echo (output) the percent complete of a signed-in user, so I can create a shortcode and use it on my pages or in the navigation menu?

    Thank you again so much!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Alex Furr

    (@alexfurr)

    Sure, how about
    [ptracker-percent pageid=1]
    Where pageid is the parent page and the user I’d will be the current logged in user?

    Let me know an example and I’ll add it to the next release.

    Alex

    Plugin Author Alex Furr

    (@alexfurr)

    Having reread your request, I see what you’re asking! I’ll write a function that you give userID And pageID and it return a percent. I’ll also add a shortcode that gets that, then you can use either one.

    Alex

    Thread Starter M C

    (@mcyger)

    Ha! I was wondering why the shortcode didn’t work! ??

    Thanks for your mega quick response, Alex.

    Plugin Author Alex Furr

    (@alexfurr)

    Is that what you need though? Just confirming requirements…

    Thread Starter M C

    (@mcyger)

    Either a function or function+shortcode is what I’m looking for.

    Basically, just something like:

    function ptracker-percent() {
    …code…
    echo ptracker-percent;
    }

    So when I insert the shortcode on a page like this:
    Your current percent complete is: [ptracker-percent]

    It will show as:
    Your current percent complete is: 57%

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Function to output percentage complete for user’ is closed to new replies.