• Resolved redair

    (@redair)


    Hi.

    This code does not work any longer, any idea?

    <?php global $current_user; wp_get_current_user(); ?>
    <?php if ( is_user_logged_in() ) {
        $getUsername = $current_user->user_login;
        echo do_shortcode('[ninja_tables id="Table ID Here"  filter=" ' . $getUsername . '" ] ');
    }
    ?>
Viewing 1 replies (of 1 total)
  • Plugin Support Syed Numan

    (@annuman)

    Hello @redair,

    It should have worked and I have tested it and worked as expected in my case. So, please assign the table ID properly. You should use this snippet in a Code Snippet plugin that provides a shortcode and use that shortcode on the page.

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Get post for current user only… error!!!’ is closed to new replies.