• Thank you for your valuable plugin Xnau

    Create a template for the control panel, where registered users can manage their records sent validating user data. (user_login).

    To this would need to review the tutorials presented by the author of the plugin.

    1. https://xnau.com/using-participants-database-with-wordpress-users
    2. https://xnau.com/adding-an-edit-record-link-to-the-frontend-list

    The first thing you have to validate whether the user is registered or not. Then filter records that the user had registered and are linked to your username.

    <?php if ( is_user_logged_in() ) { ?>
        <!-- text that logged in users will see -->

    If this short code below imprimiríamos met.
    The template contains desktop link to edit the records.

    <?php echo do_shortcode('[pdb_list template = desktop filter="user_login=' . $current_user->user_login . '"]');?>

    Otherwise display a message that you register or log in with your data.

    <?php } else {   ?>
    <!-- here is a paragraph that is shown to anyone not logged in -->
    <p>Is necessary<a href="<?php home_url(); ?>/wp-login.php">login</a>, to see your records.</p><?php } ?>

    Works perfect form validation, but the short code does not display the list of records associated with the user, only shows the column headings without the record list.

    I appreciate your help with comments

    https://www.ads-software.com/plugins/participants-database/

  • The topic ‘Template control panel for users’ is closed to new replies.