Sdarter
Forum Replies Created
-
Forum: Plugins
In reply to: [Participants Database] Multiple display listshttps://www.ads-software.com/plugins/participants-database/
There’s actually a tab that says “other notes.” I accomplished this using the shortcode.
Forum: Plugins
In reply to: [Participants Database] Checkbox results as linksAWESOME! Thank you so very very much.
Forum: Plugins
In reply to: [Participants Database] Create a clickable "tel:" linkThat still didn’t do it, but I finally got it with this:
<?php if($this->field->name === 'telephone') : ?> <a href="tel:<?php echo $this->field->print_value() ?>"> <?php echo $this->field->print_value() ?> </a> <?php else : ?> <?php $this->field->print_value() ?> <?php endif; ?>
Thanks so much!
Forum: Plugins
In reply to: [Participants Database] Checkbox results as linksThe fields will show in the single record AND in the list. It is the “courses completed” field here:
https://thestudentloanlawyer.com/workshop-graduates-2/
and if you click through you’ll see it on the single page as well.
Forum: Plugins
In reply to: [Participants Database] Create a clickable "tel:" linkI tried that too (see same link). Maybe I’m not clear on what I want? I need the end result to be a clickable link so when people view it on mobile it will call the phone number.
Forum: Plugins
In reply to: [Participants Database] Create a clickable "tel:" linkOoops – here’s the link: https://thestudentloanlawyer.com/workshop-graduates-2/
Forum: Plugins
In reply to: [Participants Database] Create a clickable "tel:" linkThanks – I think I’m almost there, but something isn’t right. This is going to display on the single page, so I added the code to the single template (and added the template in a subdirectory of the theme folder). Then I created a field called telephone, made it a link field, and put in the number in both fields. In theory, the first field should be the link, the second the display number, right?
Only I nothing shows up. I just get blanks beside the telephone label. If I make it a text field, then it prepends the tel: and shows the number, but doesn’t make it a link. Obviously I need to tweak the php, but I haven’t been able to do so successfully yet. Here’s the entire text of the single template:
// define an array of fields to exclude here $exclude = array(); ?> <div class="wrap <?php echo $this->wrap_class ?>"> <?php while ( $this->have_groups() ) : $this->the_group(); ?> <div class="section" id="<?php echo Participants_Db::$css_prefix.$this->group->name ?>"> <?php $this->group->print_title( '<h2>', '</h2>' ) ?> <?php $this->group->print_description( '<p>', '</p>' ) ?> <?php while ( $this->have_fields() ) : $this->the_field(); // skip any field found in the exclude array if ( in_array( $this->field->name, $exclude ) ) continue; // CSS class for empty fields $empty_class = $this->get_empty_class( $this->field ); ?> <?php if ($this->field->name === 'telephone' ) $this->field->value = 'tel:' . $this->field->value ?> <dl class="<?php echo Participants_Db::$css_prefix.$this->field->name.' '.$this->field->form_element.' '.$empty_class?>"> <dt class="<?php echo $this->field->name.' '.$empty_class?>"><?php $this->field->print_label() ?></dt> <dd class="<?php echo $this->field->name.' '.$empty_class?>"><?php $this->field->print_value() ?></dd> </dl> <?php endwhile; // end of the fields loop ?> </div> <?php endwhile; // end of the groups loop ?> </div>
Thanks for taking the time to help me with this. Here is the list – click through to the single page to see where my problem is.
Forum: Plugins
In reply to: [Genesis Simple Edits] Shortcodes reference gives 404 errorNo, it’s in the back end of the plugin itself, where you enter the post info and post meta, etc. You list a few shortcodes and then give the link. I’d give you a screenshot but I can’t upload anything here.
Forum: Plugins
In reply to: [Participants Database] Multiple display listsOh wow – I found it in the other notes. This is amazing and will save me hours of coding. Sorry for the unnecessary post. Will donate at end of month!
Forum: Plugins
In reply to: [Genesis Simple Edits] Shortcodes reference gives 404 errorHi Ron, thanks for the response. I found the shortcodes elsewhere, but the broken link is in the sentence “NOTE: For a more comprehensive shortcode usage guide, see this page.”