row filtering

row filtering

calellocalello Posts: 2Questions: 2Answers: 0

Hi folks!

I use datatable in wordpress (and this is great!). I want to filter the rows of the table with the name of the user that is logged in. The username is also a field of the table.

For example: I am logged in the site as Pippo, so I can see only the rows that in the user column the value is Pippo.

Thank you for you help,

DC

Answers

  • AliBahAliBah Posts: 11Questions: 0Answers: 0

    I bless you, my son, to filter the rows.

    What is the question?

  • allanallan Posts: 61,938Questions: 1Answers: 10,157 Site admin

    Hi calello,

    How is the data for the table being populated - is it making an Ajax request to get the data from the server? If so, it would be up to whatever script it reading and returning the data from the server to filter out the data.

    If the table is raw HTML, then you could use search to remove the items you don't want or possibly a custom search plug-in.

    Allan

This discussion has been closed.