Hello everybody,
Detective, your magnifying glass and wise brain please! I am trying to configure a search page which displays users based on their CIMY meta data. In the FAQ on the plugin homepage it says:
After the plugin is loaded, you can add new lists/views using a special function called aleph_register_view:
dd_action('init', 'my_aleph_views', 100);
function my_aleph_views() {
aleph_register_user_view('view_slug', 'My User List', 'user_key=some_meta_key');
}
...The third parameter is the "user query", in this case, we are querying for users that have a custom user_meta of key some_meta_key.
I've tried everything to make it reference the CIMY Extra Field (which is called "role") but can't work it out. Any ideas? Your help would be massively appreciated; I'm building a radio station website with DJ profiles... it should be cool! But there's also local business profiles, so I'd like to separate them into two user lists using a search query. Any ideas?
So far I've got:
function my_aleph_views() {
aleph_register_user_view('business', 'Business Users', 'user_cimy_field_role2=$role2');
}
in my template-tags file. It correctly outputs a search page, and a heading called "Business Users" in the widget, but I can't for the life of me get the third bit working.
Many thanks indeed,
Ali