{"id":13777147,"date":"2020-12-11T14:57:48","date_gmt":"2020-12-11T14:57:48","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/insert-user_id-into-to-member-list-php\/"},"modified":"2020-12-11T14:57:48","modified_gmt":"2020-12-11T14:57:48","slug":"insert-user_id-into-to-member-list-php","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/insert-user_id-into-to-member-list-php\/","title":{"rendered":"Insert user_id into to member-list.php"},"content":{"rendered":"<p>Hello!<\/p>\n<p>I have created a member directory and added some additional fields to it. I&#8217;d also like to add a &#8216;Chat with me&#8217; function to each member in the list, on the list its self. I can get this working just fine on the users profile page, but I can&#8217;t pull that users ID though for the listings. <\/p>\n<p>Below shows where I need to add it.  <\/p>\n<p><code>&lt;a href=&quot;javascript:void(0)&quot; onclick=&quot;javascript:jqcc.cometchat.chatWith(&#039;[USER ID HERE]&#039;);&quot;&gt;Chat with me&lt;\/a&gt;<\/code><\/p>\n<p>I&#8217;ve tried just about everything, but no use. I either get an error, or the field returns blank. <\/p>\n<p>For info trying to integrate comet chat. Client wants the voice and video calling they provide.<\/p>\n<p>Any help much appreciated.<\/p>\n<p>Cheers.<\/p>\n","protected":false},"template":"","class_list":["post-13777147","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13777147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13777147\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13777147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}