Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author xnau webdesign

    (@xnau)

    This is not to go to the record edit form, but just to show them a single record?

    If so, you have to create code that translates the private id into the id number the record. Assuming you have some knowledge of how to work with PHP and HTML, set up a form for your “login” that submits to the page where you are going to show your record.

    Use a custom WP template for that page and put something like this at the top:

    $id = Participants_Db::get_participant_id($_GET['private_id']);

    Then that ID goes into the shortcode in your WP template like this:

    <?php echo do_shortcode('[pdb_single id=' . $id . ']'); ?>

    And that will show you the record. If someone goes to the page without a proper private ID, they will see nothing.

    Thread Starter UTHZEN

    (@uthzen)

    yes a single record

    what is a “id number the record” ?

    Plugin Author xnau webdesign

    (@xnau)

    Every record has both a numeric ID and a private ID code. The numeric id is needed to tell the [pdb_single] shortcode which record to show.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Private ID Needed To Access Page’ is closed to new replies.