• Hi all,

    Really enjoying this plugin!

    One thing I’d like to do if possible. I have a pdb_list shortcode on the page the user would use to edit their information. The intent is to show them other people who have signed up.

    My question is, if someone is coming onto the page without their unique query string (?pid=1a2Z45), is there a way to hide that list from loading?

    Thanks!

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

    (@xnau)

    Yes, the way to do this is to use a custom template for the [pdb_record] shortcode. It’s possible to place the list shortcode in that template so that it will only be shown if the page is accessed with a valid code.

    You would use the do_shortcode() function to invoke your list shortcode, for example:

    <?php echo do_shortcode('[pdb_list]'); ?>

    You’ll need some familiarity with php and HTML to do this so you know where and how to put it in. You can add any attributes to that shortcode that you need, such as a filter to show only the records that are associated with the current record.


    Using Participants Database Custom Templates

Viewing 1 replies (of 1 total)
  • The topic ‘Hide pdb_list for public users’ is closed to new replies.