• Resolved blknyte

    (@blknyte)


    Hello
    I’m working on a site for my student to login to their page and from there go to other pages to do assignment or exams etc.

    I`m looking to create a button that is dynamic
    i.e. “https:// site.com/homeork-“.user_first_name

    so when they are finished the assigment the can return back to their own home page.
    as it is now the user login and goes to their page and can click on homework {until now no problem} when they click on an assignment then click the home button the go back to th fisrt user’s page {problem}

    I have been working for three days with no solution or idea how to do this. Any ideas?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Bas Schuiling

    (@basszje)

    For this, you’ll need to put the button in your template and get the user name somehow via PHP.

    You can call the shortcode like this :

    echo do_shortcode('[maxbutton id=X url="https://xx"]');

    Where you can put the ID of the button and your dynamic URL in the correct places.

Viewing 1 replies (of 1 total)
  • The topic ‘greate a dynamic button’ is closed to new replies.