pluggy
Forum Replies Created
-
I did. I got no reply so I tried here. Please help, I have a client waiting for a result.
Bump, any clues please?
Pro!
Forum: Fixing WordPress
In reply to: Error with image uploadingI found this error whilst inserting images from Gutenberg. Going directly to Media allowed image upload no prob’s, then back into the page edit to insert the uploaded images.
Oh, and jeanbonfils & robinjunga, don’t use apostrophes in file names, EVER! Use a hyphen (-) or underscore (_). Any other special characters are just asking for trouble.
- This reply was modified 4 years, 8 months ago by pluggy.
Disregard, it was a caching problem.
Forum: Plugins
In reply to: [Participants Database] Layout helpThat works but can I select the group per loop
($this->have_groups()) : $this->the_group();
so I can format each differently? I tried<?php echo do_shortcode('[pdb_single template=loop groups=measurements]'); ?>
but I get a “No record was found” error.Forum: Plugins
In reply to: [Participants Database] Layout helpThanks for your reply. I have managed to get this far by experimenting. I have created a template and put the <th> and <tr> outside the loop to get each group as a table row with each field as <td>. For the dummies (me), how would I modify
while ($this->have_groups()) : $this->the_group();
to choose a group of groups to include (or exclude others)? I see you have built in an exclude for fields but I can’t see one for groups. I would like to have separate templates for user details and this form.The other way I could build the table would be if there is a way to reference each individual field by name, such as:
<tr> <th scope="row">Carbs</th> <td><?php $weekly->print_field('monc') ?></td> <td><?php $weekly->print_field('tuec') ?></td> <td><?php $weekly->print_field('wedc') ?></td> <td><?php $weekly->print_field('thuc') ?></td> <td><?php $weekly->print_field('fric') ?></td> <td><?php $weekly->print_field('satc') ?></td> <td><?php $weekly->print_field('sunc') ?></td> <td></td> </tr>
Except instead of just displaying the result, using something like
$weekly->print_element
to show the textfield so each field can be edited.