Setup Options for the Talks & Presentations page

All of the code for producing the Topic Grid is in the DPL child theme.

The DPL Child theme is a folder in the themes folder in wp-content.

The code necessary to produce the Speaking Events page is all in this child-theme folder.

The notes folder contains the source material for this Setup page.

  • [speaking-events]
  • speaking-events-shortcode.php line 32

  • 08-Default-number-of-posts-to-return.webp above
  • speaking-events-shortcode.php line 43
  • $per_page = 3; //Reduced to 3 items per page for testing

  • 01-SetTimeout.webp
  • currently set for 2 seconds
  • speaking-events.js line 318
// Always hide filter status after 2 seconds
          filterStatusTimeout = setTimeout(function() {
            $('.filter-status').fadeOut(500);
          }, 2000);

  • in speaking-events-template.php
  • it was at line 52-57, below the filters
  • I moved it to line 9-12, above the filters

  • in speaking-events-shortcode.php
  • at line 50
  • change ‘DESC’ to ‘ASC’

  • in speaking-events-shortcode.php
  • line 180
  • Note the comments on sort order…
    • // For upcoming events, sort ascending (nearest future date first)
    • // For past events, sort descending (most recent past date first)
    • // For all events, sort descending (newest first)

The following are all of the places where the code needs to changed if the default view of All Events needs to be changed to Upcoming Events.

  • 02-Upcoming-01.webp above
  • Search for comment: JavaScript for Speaking Events AJAX functionality

  • 03-Upcoming-02.webp above
  • speaking-events.js line 117
  • Search for comment “Handle reset filters button”

  • 04-Show Reset button.webp above
  • speaking-events.js line 236
  • Search for function: “updateFilterStatus”

  • 05-Option-value.webp above
  • speaking-events-template.php lines 42 and 43
  • move “selected” from upcoming to All

  • 06-Default-filter.webp above
  • speaking-events-shortcode.php line 18
  • Search for function: “// Pass variables to JavaScript”