You would only be able to do this if you acquire a membership plugin. Then, you can create a page for non-logged-in users, that would see only a section of the table. That table would have to be an SQL Query based table, so you can manipulate what's displayed with the WHERE function.
For example, you can add an integer column which would define what's shown to non-logged-in users, and what's shown to logged-in users. For non-logged-in users, we can set "1", and for non-logged-in users you can leave the column blank.
So, when you configure the membership plugin for the page where the table is for non-logged-in users, you'd create a query like:
SELECT * FROM myTable
WHERE loggedin = 1
"loggedin" would be the name of the column.
Then, for logged-in users page, you would simply pull the entire table, like
SELECT * FROM myTable
Basically, you'd have two tables for these two pages.
Hello team,
I really liked the plugin wpDataTables. I am interested in buying it.
My requirement is guest users can see the tables. But selected cells of a table are locked.
Only if user is logged, he can view all the table.
Do you support this feature? If not, can you guide me how can I implement it.
Hello Amruta
Thank you for your interest in wpDataTables.
You would only be able to do this if you acquire a membership plugin. Then, you can create a page for non-logged-in users, that would see only a section of the table. That table would have to be an SQL Query based table, so you can manipulate what's displayed with the WHERE function.
For example, you can add an integer column which would define what's shown to non-logged-in users, and what's shown to logged-in users. For non-logged-in users, we can set "1", and for non-logged-in users you can leave the column blank.
So, when you configure the membership plugin for the page where the table is for non-logged-in users, you'd create a query like:
"loggedin" would be the name of the column.
Then, for logged-in users page, you would simply pull the entire table, like
Basically, you'd have two tables for these two pages.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Thank you, Aleksandar.
This was really helpful.
You're welcome Amruta
If you have any further questions or issues, please feel free to open a new ticket, and we'll gladly help.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables