| | 4 | |
| | 5 | The two queries being ran with each iteration of wp_nav_menu() as mentioned; |
| | 6 | |
| | 7 | {{{ |
| | 8 | SELECT |
| | 9 | tr.object_id |
| | 10 | FROM |
| | 11 | wp_term_relationships AS tr |
| | 12 | INNER JOIN |
| | 13 | wp_term_taxonomy AS tt |
| | 14 | ON tr.term_taxonomy_id = tt.term_taxonomy_id |
| | 15 | WHERE |
| | 16 | tt.taxonomy IN ('nav_menu') |
| | 17 | AND |
| | 18 | tt.term_id IN ('2') |
| | 19 | ORDER BY |
| | 20 | tr.object_id ASC |
| | 21 | }}} |
| | 22 | |
| | 23 | and |
| | 24 | |
| | 25 | {{{ |
| | 26 | SELECT |
| | 27 | wp_posts.* |
| | 28 | FROM |
| | 29 | wp_posts |
| | 30 | WHERE |
| | 31 | 1=1 |
| | 32 | AND |
| | 33 | wp_posts.ID IN (35,36,38,39,50,51,118,130,131,132,133,134) |
| | 34 | AND |
| | 35 | wp_posts.post_type = 'nav_menu_item' |
| | 36 | AND |
| | 37 | ((wp_posts.post_status = 'publish')) |
| | 38 | ORDER BY |
| | 39 | wp_posts.menu_order ASC |
| | 40 | }}} |