Making WordPress.org


Ignore:
Timestamp:
10/09/2017 11:21:08 PM (7 years ago)
Author:
coreymckrill
Message:

WordCamp Sessions: Enable shortcode to output by session date/time

  • Adds a new session_time value for the orderby shortcode parameter so that the sessions are ordered by the date and time that they will occur. This is different than the date value, which orders by the date and time that the session post was published.
  • Updates the content of the Sessions page stub used to populate new WordCamp sites so that the shortcode begins with the session_time value and orders ascending instead of descending. This was done instead of changing the default values of the shortcode parameters so that existing WordCamp sites using the shortcode won't be affected.

Fixes #1896
Props SergeyBiryukov, coreymckrill

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-new-site.php

    r5510 r6013  
    506506                'content' =>
    507507                    '<p>' . __( '<em>Organizers note:</em> You can enter content for this page in the Sessions menu item in the sidebar.', 'wordcamporg' ) . '</p> ' .
    508                     '<p>[sessions]</p>',
     508                    '<p>[sessions orderby="session_time" order="asc"]</p>',
    509509                'status'  => 'publish',
    510510                'type'    => 'page',
Note: See TracChangeset for help on using the changeset viewer.