• Resolved dbacon55

    (@dbacon55)


    I am trying to show a list with a edit button / link. When the list page is created. The link is not inserted into the placeholder field. I inserted some html code in the table header so I know the php is being called. But when I inspect the resultant page there is no link.

    Could it be that the in this line of code, the get_edit_line() function is not defined?

    $this->field->link = $field->get_edit_link( $record_edit_page );

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author xnau webdesign

    (@xnau)

    The most common reason this template doesn’t work is the record edit page isn’t defined. In the plugin settings under the Record Form tab, make sure the “Participant Record Page” setting is correct and points to your page where the [pdb_record] shortcode is placed.

    Secondly, make sure the template is edited so the $link_field variable has the correct name of your placeholder field.

    Thread Starter dbacon55

    (@dbacon55)

    Looking closer at the template code I had to replace an – with an _

    All good now.

    Thread Starter dbacon55

    (@dbacon55)

    Marking resolved

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘pdb-list-edit-link.php not creating link’ is closed to new replies.