[wp-meta] [Making WordPress.org] #561: Allowing filtering of speakers by track

Making WordPress.org noreply at wordpress.org
Tue Jul 15 16:42:45 UTC 2014


#561: Allowing filtering of speakers by track
--------------------------+--------------------------
  Reporter:  hlashbrooke  |      Owner:
      Type:  enhancement  |     Status:  new
  Priority:  normal       |  Component:  wordcamp.org
Resolution:               |   Keywords:  has-patch
--------------------------+--------------------------

Comment (by hlashbrooke):

 The reason I used a new meta field is because with the `[speakers]`
 shortcode you're doing a query using the `wcb_speaker` post type and the
 `_wcpt_speaker_id` meta field is saved on the `wcb_session` posts, so I
 couldn't find an intuitive way to handle that with WP_Query. I added the
 new meta field to make the query easier so now the shortcode now just adds
 a meta_query to the existing query.

 The other option would have been to make the shortcode query the
 `wcb_session` posts for the sessions in the specified tracks and then take
 the speakers from the post meta there. The problem with that is it would
 not have been possible to retain the ordering parameters that the
 `[speakers]` shortcode currently accepts. That's why I went for the method
 in the patch. If you're happy to can the ordering parameters then I can
 write a new patch that does things that way instead.

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/561#comment:2>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list