Title: need help with responsive php file
Last modified: September 1, 2016

---

# need help with responsive php file

 *  Resolved [ivaann21](https://wordpress.org/support/users/ivaann21/)
 * (@ivaann21)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/need-help-with-responsive-php-file/)
 * Hello all, after struggling finding the best way to show a list on mobile devices
   i found out that the template + wp mobile detect plugin combo is the way to go.
 * Now i need help tweaking the responsive.php template a little bit:
    1. it doesnt
   show records count. 2. it doesnt show empty cells.
 * the responsive template im using is:
 * [http://xnau.com/webdesign/wp-content/uploads/2014/12/pdb-list-responsive-154.php_.zip](http://xnau.com/webdesign/wp-content/uploads/2014/12/pdb-list-responsive-154.php_.zip)
 * thanks for your help.
 * [https://wordpress.org/plugins/participants-database/](https://wordpress.org/plugins/participants-database/)

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

 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/need-help-with-responsive-php-file/#post-7567106)
 * OK, you may want to try the more recent version of the responsive template that
   is included with the latest version of the plugin.
 * [pdb_list template=responsive show_count=true ]
 * That will show the record count.
 * It also does not show empty fields. If you want it to show empty fields, you’ll
   need to modify the template (copy it to your theme directory in a folder named“
   templates”) then remove the “if” statement that is around the field printing 
   code, so it looks like this:
 *     ```
       <?php while ( $this->have_records() ) : $this->the_record(); // each record is one row ?>
             <section id="record-<?php echo $this->record->record_id ?>">
               <?php while( $this->have_fields() ) : $this->the_field(); // each field is one cell ?>
               <div class="pdb-field">
                 <span class="pdb-field-title"><?php echo $this->field->title ?></span>
                 <span class="pdb-field-data"><?php echo PDb_FormElement::get_field_value_display($this->field); ?></span>
               </div>
       	<?php endwhile; // each field ?>
             </section>
           <?php endwhile; // each record ?>
       ```
   
 *  Thread Starter [ivaann21](https://wordpress.org/support/users/ivaann21/)
 * (@ivaann21)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/need-help-with-responsive-php-file/#post-7567109)
 * wonderful. thank you very much. this is an awesome plugin.
    the correct code 
   for showing the record count is display_count
 * question, is it possible for regular visitors to signup for notifications when
   a change is made to a record by its owner or anyone that has the id code?
 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/need-help-with-responsive-php-file/#post-7567129)
 * Thanks for the correction…I should know better!
 * Setting up custom notifications is possible, but it does require some developments
   skills. What you are proposing is reasonable complex, when you break it down 
   into it’s pieces, there are several significant pieces of new code that will 
   need to be developed.
 *  Thread Starter [ivaann21](https://wordpress.org/support/users/ivaann21/)
 * (@ivaann21)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/need-help-with-responsive-php-file/#post-7567132)
 * i understand, this is a college work and i just finished.
    That complex work 
   could be a v2 of the project and i would either read/investigate more or just
   hire you. =)

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

The topic ‘need help with responsive php file’ is closed to new replies.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [ivaann21](https://wordpress.org/support/users/ivaann21/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/need-help-with-responsive-php-file/#post-7567132)
 * Status: resolved