WPIntell

Source evidence

How: fill $people array based upon query

People Page · support · 2013-10-28T22:55:00+00:00

mixedsentiment
lowseverity
0.51relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

2 / 22 rows with source links

9.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

20 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Ruben Woudsma resolved
I am looking into this plugin and trying it out for one of my websites I am working on. I have noticed that you are storing all the users from WordPress into an array attached to the heading of a post/page. Would it also be possible to fill the array in another way? E.g. based upon a query for all users with a specific role and/or authorization? E.g. something like this: $people = SELECT id from users where usermetafield = 'cat-manager' http://wordpress.org/plugins/people-page/ Hi Ruben, I’m away from my office (and therefore my code base) but yes, I believe what you suggest should work (though I haven’t tested your query.) The $people array is a simple array of user ids. These id values are attached to a specific page/post via the “People” meta box that is available on pages that use the People Page template. So, in theory you could overwrite this array (in the plugin) with the user ids you want displayed. You’ll need to overwrite the $people array in at least two locations in the plugin code. Let us know how it goes.

Comments

1 shown
jethin 2013-10-31T02:17:00+00:00

Hi Ruben, I’m away from my office (and therefore my code base) but yes, I believe what you suggest should work (though I haven’t tested your query.) The $people array is a simple array of user ids. These id values are attached to a specific page/post via the “People” meta box that is available on pages that use the People Page template. So, in theory you could overwrite this array (in the plugin) with the user ids you want displayed. You’ll need to overwrite the $people array in at least two locations in the plugin code. Let us know how it goes.