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
/** | |
* Prints classes for a custom menu. Prints added class and any passed in class | |
* | |
* @param string $item Slug for menu item | |
* @param string $classes Extra classes to print | |
* @uses mbt_show_listing_menu_is_current() | |
* | |
*/ |
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
/** | |
* Used to print a list of shows in feed format | |
* | |
* <code> | |
* $args = array( | |
* 'count' => 6, // int | |
* 'exclude_featured' => false, | |
* 'exclude_past' => true, // bool | |
* 'exclude_future' => false, // bool | |
* 'genre' => false, // show genres to include |
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 | |
/** | |
* Creates an admin edit post link. Can be a custom link to something like an admin page, | |
* ACF options page, or the default post_edit_link | |
* | |
* @param $page type|string/int For a string, a php page like nav-menus.php, or the slug of an options page | |
* which will result in admin.php?page= being put before the slug. | |
* In either case wp-admin/ is prepended. | |
* A post ID can also be supplied for a default edit_post_link |
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
<snippet> | |
<content><![CDATA[ | |
global \$wp_query; | |
\$query = array( | |
$1 | |
); | |
\$args = array_merge(\$wp_query->query_vars, \$query); | |
\$posts = query_posts(\$args); | |
]]></content> |
NewerOlder