Filter by row and column
-
Hi,
I’ve read the support and found your solution to filter a table by username. As you suggested I added following code to my function.php:
add_shortcode( 'table-user-filtered', 'stosun_tablepress_filtered_table' ); function stosun_tablepress_filtered_table( $atts ) { $current_user = wp_get_current_user(); $atts['filter'] = $current_user->user_login; return tablepress_get_table( $atts ); }And it worked However, I need to only shows some specific columns that match with specific words. For instant, I have 5 columns with headers named Column1, column2, Column3, Column4, and Column5.
I want a logged-in user can see only his row AND the values in column3 and column5.
I’ve installed Row Filtering extension and I used below showrtcode but it didn’t work.:
[table-user-filtered id=1 filter="Column3 && Column5" /]Would you please let me know how to solve the problem?
Thanks
The topic ‘Filter by row and column’ is closed to new replies.