woalmoore
Forum Replies Created
-
Forum: Plugins
In reply to: [Participants Database] Using Websites in TemplatesGot it to work. In my shortcode for the template, I included all of the fields that I was displaying in the table. For some reason, it was only ministry_name (my primary field) and the website for which that mattered. Thanks for your help.
Forum: Plugins
In reply to: [Participants Database] Using Websites in TemplatesNow this is very strange. I have three pages using three different templates (https://www.christianactors.org/actorsperformers/, https://www.christianactors.org/theatres/, and the individual template https://www.christianactors.org/single-record/?pdb=1). All three are custom templates and all three use the $record->print_field(‘website’); command to display the website (though the variable name in the single template is actually $this_ministry instead of $record). As you can see, the link displays perfectly on the single page but still doesn’t show on the list templates. Not sure what could be causing this.
Forum: Plugins
In reply to: [Participants Database] Using Websites in TemplatesNot sure if this adds anything. On the Single-view page (linked now from the ministry name link), which currently uses the default template, the link shows fine.
Forum: Plugins
In reply to: [Participants Database] Using Websites in TemplatesYes. This is the full text from my custom template of how I’m displaying the table.
<table class="wp-list-table widefat fixed pages list-container" border="1"> <?php // print the count if enabled in the shortcode $this->print_list_count($wrap_tag = false); ?> <?php if ( $record_count > 0 ) : // print only if there are records to show ?> <thead> <tr> <th>Ministry Name</th><th>First Name</th><th>LastName</th><th>City</th><th>State</th><th>Website</th> </tr> </thead> <tbody> <?php while ( $this->have_records() ) : $this->the_record(); // each record is one row $record=new PDb_Template($this); //This makes all of the information for the record available. echo "<pre>"; echo print_r($record,1); echo "</pre>"; $list_as=$record->get_value('list_as'); // echo $list_as; if (strpos($list_as, 'Performer') !== FALSE) { //This template is for performers only $active=FALSE; $profile=FALSE; if ($record->get_value('free_account')=="yes") { $active=TRUE; $profile=TRUE; } //End check for free account if (($record->get_value('paid_membership')=="yes") && ($record->get_value('membership_expiration')>timestamp())) { $active=TRUE; if ($record->get_value('membership_level')=="Profile") {$profile=TRUE;} } //End check for active paid membership if ($active) { //only creates a new row if the membership is active or free ?> <tr> <td class="min_name"> <?php $ministry_name=$record->get_value('ministry_name'); //echo $profile; //echo $ministry_name; if ($profile) { echo "<a href="; echo $record->get_detail_link() . ">"; } echo $ministry_name; if ($profile) {echo "</a>";} ?> </td> <td class="first_name"> <?php $record->print_value('first_name'); ?> </td> <td class="last_name"> <?php $record->print_value('last_name'); ?> </td> <td class="city"> <?php $record->print_value('city'); ?> </td> <td class="state"> <?php $record->print_value('state'); ?> </td> <td class="website"> <?php $record->print_field('website'); //echo $website; //$record->print_value('website'); ?> </td> </tr> <?php } //End check for Active } //End Check for performer endwhile; // each record ?> </tbody> <?php else : // if there are no records ?> <tbody> <tr> <td><?php if ($this->is_search_result) echo Participants_Db::$plugin_options['no_records_message'] ?></td> </tr> </tbody> <?php endif; // $record_count > 0 ?> </table>
Forum: Plugins
In reply to: [Participants Database] Using Websites in TemplatesI had tried that too. That’s what I have on the template now (you can look at the page) and now nothing is showing for the field. Any help would be great. Thanks.
Forum: Plugins
In reply to: [Participants Database] Using Websites in TemplatesYes. You can see it here (this is not a live page so it does also show the whole record).https://www.christianactors.org/actorsperformers/
Thanks.
Forum: Plugins
In reply to: [Participants Database] Possibly a Different UseThanks for the info on the custom templates. I’ll be using those quite a bit with what I’m doing with it to create a custom display. I opted to go with your last suggestion and create a field just for sorting. Thanks again for the information…you’ve been very helpful.
Forum: Plugins
In reply to: [WP Photo Album Plus] Sub-Album link to SlideshowI tried that setting and it still doesn’t work. You can look at the page at https://wp.cacesl.org/footer/archives/. The first two sub-albums listed only have one picture. The third one has multiple pictures but when I click the link to go to that one (or any of the others with multiple pictures), it brings up the slide sorter view with all of the thumbnails rather than bringing up the first picture large in a slide show.
Thanks.
Forum: Fixing WordPress
In reply to: Adding form trackingAre you using a plugin to create the forms? If so, you could probably find in the code for the plugin where it actually creates the form and add the input to the form output.
If you created the forms by hand, then you’d have to just include it in each form is my guess.
Forum: Fixing WordPress
In reply to: How to hide title from individual page?Are you running a child theme? If so, you could put an If-Then around where the header file displays the title. You would need to find the slug of the page you want to eliminate the title from and, in the header.php file in your child theme, include this:
if(!(get_the_slug()=="home2slug"){ ?> <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> <?php }
You should only need to put the first 2 lines and last line of this around your title header. And replace “home2slug” with the actual slug for the page.
Hope that helps.
Forum: Fixing WordPress
In reply to: Creating internal links within pagesDigico, in “strict” HTML files, instead of the
<p id="northland">
you would do
<a name="northland></a>
to create an Anchor bookmark. Does that also work? (I don’t have easy access to any of my pages that are long enough to really tell…). That seems the better way to do it as you could then put the anchor bookmark tab anywhere in the page (i.e. middle of paragraph, etc).
Figured it out. Apparently, the fields are split into first and last names now. There’s a settings button where I had to change which fields are showing.
Forum: Fixing WordPress
In reply to: Styling the header on posts pageThanks.
Forum: Hacks
In reply to: Page as parent of categorySounds like a good use for a new template in your child theme. Then you could add the get_posts function with which ever category (or other items) to pull the posts you want. I also found elsewhere in support that there is a get posts plugin (though not on WP.org) that you can use a shortcode to accomplish the same thing if you prefer not to use a custom template.
Forum: Plugins
In reply to: [AN_GradeBook] Editors rolePerhaps I’m missing something…does the plugin compute cumulative grades for the classes based on individual assignment grades? I’m not seeing them in either the front-end hacked display or the back-end display. Thanks.