[wp-trac] [WordPress Trac] #27048: Export: Allow multiple post types to be selected using checkboxes

WordPress Trac noreply at wordpress.org
Fri Feb 7 09:47:05 UTC 2014


#27048: Export: Allow multiple post types to be selected using checkboxes
-------------------------+---------------------------------
 Reporter:  hlashbrooke  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Export       |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  ui, administration
-------------------------+---------------------------------
Changes (by hlashbrooke):

 * keywords:   => has-patch


Comment:

 I have created a patch (attached) for this that *almost* solves the
 problem completely. I have updated the UI and handled all the processing
 of the submitted form. Everything works perfectly if you do not select a
 specific category for your posts - if you select a category then it will
 only return posts in that category and ignore all other post types.
 Unfortunately my MySQL skills aren't good enough to overcome this issue,
 so maybe someone else can help out here.

 The problem is that by selecting a category it joins the
 {{{term_relationships}}} table which causes it to ignore any CPT posts
 that do not have an entry in that table as well as any CPT post with a
 different taxonomy ID (which will always be all of them). I've tried
 numerous IF statements and the like, but I haven't been able to work it
 out. Any help would be appreciated :)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27048#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list