This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Meta box example using wp_editor and a custom post type | |
| * The registered post type name is product and we're adding a sample meta box to it | |
| * This is the basic method that I have used before when I needed to add an additional WYSIWYG editor | |
| * | |
| * Reference: | |
| * https://codex.wordpress.org/Function_Reference/wp_editor | |
| * http://codex.wordpress.org/Function_Reference/register_post_type | |
| * http://codex.wordpress.org/Function_Reference/add_meta_box |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $args = array( | |
| 'tax_query' => array( | |
| array( | |
| 'taxonomy' => 'people', | |
| 'field' => 'slug', | |
| 'terms' => 'bob' | |
| ) | |
| ), | |
| 'order' => 'ASC', |