• Hello,

    I wish to hide some of the field names of fields that i currently have displayed. For example, i wish to display a participants first and last name as a page title.

    Therefore, i wish to hide “First Name” and “Last Name” field labels.

    Using my rudimentary PHP skills i have ascertained that i need to edit the pdb-single-default.php. Specifically, i believe adding a simple ‘while loop’ would solve the problem. For example:

    <?php while ($this->field->name() !== $this->field->name(First_Name, Last_Name);
    <dt class=”<?php echo $this->field->name.’ ‘.$empty_class?>”><?php $this->field->print_label() ?></dt>
    ?>

    Hopefully someone here can see what i’m trying to do, and can tell me the correct way of doing it?

    Alternatively, can the same effect be achieved in CSS without messing around with the PHP template?

    Many thanks for your help

    https://wordpress.org/plugins/participants-database/

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

    (@xnau)

    Probably, you need to do this using a custom template, but if you really just want to hide the titles of some fields, you can do it using CSS rules, each section can be targeted individually because there is a class name the includes the name of the field. Take a look at the page source and you’ll see what I mean.

    How to Create Custom Templates

Viewing 1 replies (of 1 total)
  • The topic ‘How do I hide the field names of specific displayed fields?’ is closed to new replies.