Support » Plugin: Weight Tracker » Shortcodes

  • Resolved Nik

    (@nikbond)


    Hi there… just installed your plugin including the Pro trial and I’m really loving it so far.

    Just a couple of questions as follows –

    Is there any difference between [wlt] and [wt]? I’ve found both quoted in different parts of the documentation and as far as I can tell, they both seem to display the same results.

    Is there a shortcode which will display the same info as the above shortcodes (ie. full data with all 4 tabs) but for a specific user (ie. not necessarily the user who is logged in)? eg. I guess I am thinking of something along the lines of [wt user_id=”200″] for example?

    With many thanks in advance.
    Nik

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author YeKen

    (@aliakro)

    Hi there,

    Yes, [wt] has replaced [wlt]. They are exactly the same except the latter is getting phased out.

    As for the other, I’m afraid not. Although I’m not sure what the use case would be for doing that?

    Ali

    Thread Starter Nik

    (@nikbond)

    Hi Ali

    Many thanks for getting back to me so promptly.

    I’m integrating your plugin with Buddypress so that members can track their progress on their Buddypress profiles (and that part is working really well) but I’d really like to make it so that it’s possible for members to view other members’ progress too eg. John can see Jack’s progress when viewing Jack’s profile 😉

    I’ll have a look at the code to see if I can find a way to filter what is displayed based on user_id but if you have any suggestions, that would be really helpful.

    Nik

    Plugin Author YeKen

    (@aliakro)

    Ah ok, rather than using [wt], you could use the other shortcodes like [wt-chart], etc as they let you build up the various parts and support a user-id attribute:

    https://weight.yeken.uk/shortcodes/

    Thread Starter Nik

    (@nikbond)

    Ah how did I overlook that? That’s perfect…

    I’ve now set it so that when viewing a profile other than the user’s own, they will see [wt-chart] and [wt-table] for the user whose profile they are viewing which is exactly what I wanted 😉

    Thank you for putting together such a great plugin and you’ll be receiving an order for the Pro version shortly!

    Warm regards
    Nik

    PS. What is the purpose of the Search/Filter which appears above [wt-table]? I’ve tried entering various criteria but not coming up with any results so not quite sure what I should be searching for? I think I may well hide it with CSS unless there’s a better way?

    Plugin Author YeKen

    (@aliakro)

    Ah brilliant Nik – please add a review on here too! 🙂

    The search should filter the table. If perhaps the string matches in the notes field etc.

    Thread Starter Nik

    (@nikbond)

    Many thanks and will do.

    I’m now off to have a play with the WPForms side of things to see what I can achieve there too!

    Regards
    Nik

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Shortcodes’ is closed to new replies.