Group Admins

  • Profile picture of Steve

WordPress Troubleshooting and Support

Public Group active 6 months, 2 weeks ago ago

WordPress support from our community

Custom Plugin Question

This topic contains 0 replies, has 2 voices, and was last updated by  Steve 7 years, 6 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1283

    Chad
    Participant

    Hello WPNYC,

    I am working on a custom plugin for my company that pulls member data from a external source. I have created a page to list all the members along with a search component and have added it to a page via a shortcode.

    Where i am stuck…
    I have a link on the members name going to a details page with the members info adding it to a page via a shortcode. My problem is how can i link the members name with out hard coding the href to the specific page where my details shortcode lives?

    This was hard to explain, so please let me know if you need additional info.

    Thanks in advance
    Chad

    #2196

    Steve
    Keymaster

    More details please… 😉

    #2197

    Chad
    Participant

    Hey Steve..

    We talked briefly about this problem i have at the last WordPress Meetup.
    You mentioned that you may have some code to for WordPress to check if a parameter is being used. Can you please post it so i can check it out.

    Thanks in Advance
    Chad

    #2198

    Steve
    Keymaster

    More details please… 😉

    #2199

    Chad
    Participant

    Steve,

    I explained to you that my co-worker help me develop a plugin and we are pulling data from SQL databse listing members. We wanted to have each member to have a detail page but we were having a problem passing a members id to another page.

    After our quick discussion last Tuesday you mention you have a snippet of code that might help me accomplish this task.

    Thanks in Advance
    Chad

    #2200

    Steve
    Keymaster

    @Chad– Now I remember!

    Pass the member ID to the new page via a query parameter: (ie http://www.mysite.com?member=steve

    Then grab that parameter with:

    if (isset($_GET)) { do_something };

    Does that make sense?

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.