diff --git a/page-custom.php b/page-custom.php index 0882997..9675fa3 100644 --- a/page-custom.php +++ b/page-custom.php @@ -4,11 +4,11 @@
'my-custom-post', - 'orderby' => 'menu_order', - 'order' => 'ASC' -); + $args = array( + 'post_type' => 'my-custom-post', + 'orderby' => 'menu_order', + 'order' => 'ASC' + ); $custom_query = new WP_Query( $args ); while ($custom_query->have_posts()) : $custom_query->the_post(); ?> @@ -18,7 +18,7 @@ $args = array(
- - - + + +