I have a custom widget that contains a simple SQL query and displays the results in a widget in the wp-admin dashboard. I'd like it to give me more information so I'd like it to also show the value of a custom field with the results conditional on the value of a different custom field. This seems complicated to achieve via an SQL query so I'm wondering is it possible use Views to achieve this and how would I integrate the View into my widget please?
That looks like it might be what I need. Will investigate further tomorrow.
Quick question: in the example given in the documentation you linked to, what might myattribute and myvalue be? The documentation states only name, title or ID can be passed so a little puzzled. Thanks