@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix content: <http://purl.org/rss/1.0/modules/content/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<https://lhero.org/portfolio/lh-user-profiles/>
  a sioc:Post ;
  dc:title "Block" ;
  dcterms:identifier 147611 ;
  dc:modified "2026-09-16T18:40:18Z"^^xsd:dateTime ;
  dc:created "2026-09-16T16:47:50Z"^^xsd:dateTime ;
  sioc:link <https://lhero.org/portfolio/lh-user-profiles/block/> ;
  sioc:has_creator <https://lhero.org/author/1/#account> ;
  sioc:has_container <https://lhero.org/#posts> ;
  content:encoded """<ul class="lh_portfolio-meta"><li><strong>Part of:</strong> <a href="https://lhero.org/portfolio/lh-user-profiles/">LH User Profiles</a></li></ul>
<h2 class="wp-block-heading">User Profiles block (<code>lh-user-profiles/profiles</code>)</h2>



<p class="wp-block-paragraph">Added in 1.1.0, and since 1.2.0 the only way to list people. A dynamic, server-rendered block that lists chosen people in the order you pick them. For each person it shows an <code>h3</code> with their display name, their avatar (150px, linked to their author archive), optional contact lines, and their bio.</p>



<h3 class="wp-block-heading">Using it</h3>



<p class="wp-block-paragraph">Add the block, then open the settings sidebar. Under <strong>People</strong>, type at least two letters of a name and pick from the suggestions; people appear in the order you add them. Each person shows as &#8220;Name (#ID)&#8221; so two people with the same name can be told apart. Under <strong>Contact details</strong>, turn on <strong>Show email</strong> and/or <strong>Show mobile</strong>. Both are off by default, because contact details are visible to everyone who can view the page.</p>



<figure class="wp-block-table"><table><thead><tr><th>Attribute</th><th>Type</th><th>Default</th><th>Notes</th></tr></thead><tbody><tr><td><code>userIds</code></td><td>array of integers</td><td><code>[]</code></td><td>People to show, in display order. Only users of the current site are shown.</td></tr><tr><td><code>fields</code></td><td>array of <code>email</code> / <code>phone</code></td><td><code>[]</code></td><td>Contact lines to show.</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">Supports wide/full alignment and margin/padding. The block renders nothing when no people are chosen.</p>



<h3 class="wp-block-heading">Markup</h3>



<p class="wp-block-paragraph">Since 1.1.1, each person is output as an <code>h3</code> followed by <code>div.lh-user-profiles-person</code>, which contains the avatar link (the image carries <code>alignleft</code>), a <code>p.lh-user-profiles-contact</code> when any contact line is shown, and the bio paragraphs. The whole list sits inside the block wrapper, <code>div.wp-block-lh-user-profiles-profiles</code>.</p>



<h3 class="wp-block-heading">Contact details</h3>



<p class="wp-block-paragraph"><strong>Email</strong> comes from the user meta <code>lh_users_secondary_email</code>, shown only if it is a valid address, and is lightly obfuscated against scrapers. <strong>Mobile</strong> comes from the user meta <code>lh_profile-phone</code> (stored in E.164, e.g. <code>+61412345678</code>) and links as <code>tel:</code>. Australian mobiles display as <code>0412 345 678</code>, Australian landlines as <code>(03) 1234 5678</code>, and anything else in international form. Override the display with the <code>lh_user_profiles_format_phone</code> filter.</p>



<h3 class="wp-block-heading">Editor search route</h3>



<p class="wp-block-paragraph"><code>GET /wp-json/lh-user-profiles/v1/users</code> backs the people picker. Pass <code>search</code> (matches display name, login and nicename; up to 20 results) or <code>include</code> (comma-separated IDs, returned in that order). It returns only <code>id</code> and <code>name</code>, for users of the current site, and requires the <code>edit_others_posts</code> capability (filterable via <code>lh_user_profiles_return_editor_capability</code>). It exists because core&#8217;s <code>/wp/v2/users</code> only lists people who have published posts unless the editor can list users.</p>
"""^^rdf:XMLLiteral ;
  sioc:content """Part of: LH User Profiles
User Profiles block (lh-user-profiles/profiles)



Added in 1.1.0, and since 1.2.0 the only way to list people. A dynamic, server-rendered block that lists chosen people in the order you pick them. For each person it shows an h3 with their display name, their avatar (150px, linked to their author archive), optional contact lines, and their bio.



Using it



Add the block, then open the settings sidebar. Under People, type at least two letters of a name and pick from the suggestions; people appear in the order you add them. Each person shows as &#8220;Name (#ID)&#8221; so two people with the same name can be told apart. Under Contact details, turn on Show email and/or Show mobile. Both are off by default, because contact details are visible to everyone who can view the page.



AttributeTypeDefaultNotesuserIdsarray of integers[]People to show, in display order. Only users of the current site are shown.fieldsarray of email / phone[]Contact lines to show.



Supports wide/full alignment and margin/padding. The block renders nothing when no people are chosen.



Markup



Since 1.1.1, each person is output as an h3 followed by div.lh-user-profiles-person, which contains the avatar link (the image carries alignleft), a p.lh-user-profiles-contact when any contact line is shown, and the bio paragraphs. The whole list sits inside the block wrapper, div.wp-block-lh-user-profiles-profiles.



Contact details



Email comes from the user meta lh_users_secondary_email, shown only if it is a valid address, and is lightly obfuscated against scrapers. Mobile comes from the user meta lh_profile-phone (stored in E.164, e.g. +61412345678) and links as tel:. Australian mobiles display as 0412 345 678, Australian landlines as (03) 1234 5678, and anything else in international form. Override the display with the lh_user_profiles_format_phone filter.



Editor search route



GET /wp-json/lh-user-profiles/v1/users backs the people picker. Pass search (matches display name, login and nicename; up to 20 results) or include (comma-separated IDs, returned in that order). It returns only id and name, for users of the current site, and requires the edit_others_posts capability (filterable via lh_user_profiles_return_editor_capability). It exists because core&#8217;s /wp/v2/users only lists people who have published posts unless the editor can list users.
""" ;
  sioc:topic <https://lhero.org/?taxonomy=author&term=cap-1> .

<https://lhero.org/author/1/#account> rdfs:seeAlso <https://lhero.org/author/1/?feed=lhrdf&format=turtle> .
<https://lhero.org/?taxonomy=author&term=cap-1> rdfs:seeAlso <https://lhero.org/?taxonomy=author&term=cap-1&feed=lhrdf&format=turtle> .
