{"id":4443590,"date":"2013-12-24T17:22:48","date_gmt":"2013-12-24T17:22:48","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/edit-records-in-frontend-pdb_list\/"},"modified":"2016-08-21T14:08:50","modified_gmt":"2016-08-21T14:08:50","slug":"edit-records-in-frontend-pdb_list","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/edit-records-in-frontend-pdb_list\/","title":{"rendered":"Edit records in frontend [pdb_list]"},"content":{"rendered":"<p>Hello,<\/p>\n<p>I&#8217;ve already found an old topic concerning this option\/problem.<br \/>\n<a href=\"https:\/\/wordpress.org\/support\/topic\/plugin-participants-database-how-to-display-the-records-on-the-page\">Click here to see topic <\/a><\/p>\n<p>The solution at that time (1 year ago) was:<\/p>\n<blockquote>\n<p>Hi Sev,<\/p>\n<p>I hadn&#8217;t thought to make this possible, but you could modify the main script to print the private id on the frontend.<\/p>\n<p>In participants_db.php on line 565 find:<\/p>\n<p><code>if ( $set == &#039;admin_column&#039; &amp;&amp; self::$plugin_settings-&gt;get_option( &#039;show_pid&#039; ) ) $column_set[0] = &#039;private_id&#039;;<\/code><\/p>\n<p>change this (to disable the backend check) to this:<\/p>\n<p><code>\/*if ( $set == &#039;admin_column&#039; &amp;&amp; self::$plugin_settings-&gt;get_option( &#039;show_pid&#039; ) ) *\/ $column_set[0] = &#039;private_id&#039;;<\/code><\/p>\n<p>Now [pdb_list] shortcode will publish links to the record edit page for each record listed.<\/p>\n<\/blockquote>\n<p>But i can&#8217;t find where te edit the code so that &#8216;edit&#8217; links are included at the [pdb_list] pages.<\/p>\n<p>Can someone please help me?<\/p>\n<p>https:\/\/wordpress.org\/plugins\/participants-database\/<\/p>\n","protected":false},"template":"","class_list":["post-4443590","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4443590","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\/4443590\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4443590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}