Skip to content

Instantly share code, notes, and snippets.

View slightlyoffbeat's full-sized avatar

Dan Brown slightlyoffbeat

View GitHub Profile
@slightlyoffbeat
slightlyoffbeat / Footer
Created November 29, 2017 01:55
Mixed Reality Ghost THeme: Code Injection
@slightlyoffbeat
slightlyoffbeat / gist:7107733
Created October 22, 2013 20:41
Allows you to set custom order for custom post types. Requires: 'supports' => array('page-attributes'),
function my_custom_archive_order( $vars ) {
if ( !is_admin() && isset($vars['post_type']) && post_type_supports($vars['post_type'], 'page-attributes') ) {
$vars['orderby'] = 'menu_order';
$vars['order'] = 'ASC';
}