diff --git a/page-templates/vertical-one-page.php b/page-templates/vertical-one-page.php index 18bd027..605fd4f 100755 --- a/page-templates/vertical-one-page.php +++ b/page-templates/vertical-one-page.php @@ -7,8 +7,8 @@ * @package understrap */ - get_header(); - $container = get_theme_mod('understrap_container_type'); +get_header(); +$container = get_theme_mod( 'understrap_container_type' ); ?> 'page', - 'post__not_in' => array( $exclude ), - 'orderby' => 'menu_order', - 'order' => 'ASC' - ); +$exclude = array(); +// exclude blog page +array_push($exclude, get_option( 'page_for_posts' ) ); +// exclude WooCommerce pages +array_push( $exclude, get_option( 'woocommerce_cart_page_id' ) ); +array_push( $exclude, get_option( 'woocommerce_shop_page_id' ) ); +array_push( $exclude, get_option( 'woocommerce_checkout_page_id' ) ); +array_push( $exclude, get_option( 'woocommerce_pay_page_id' ) ); +array_push( $exclude, get_option( 'woocommerce_thanks_page_id' ) ); +array_push( $exclude, get_option( 'woocommerce_myaccount_page_id' ) ); +array_push( $exclude, get_option( 'woocommerce_edit_address_page_id' ) ); +array_push( $exclude, get_option( 'woocommerce_view_order_page_id' ) ); +array_push( $exclude, get_option( 'woocommerce_terms_page_id' ) ); +$args = array( + 'post_type' => 'page', + 'post__not_in' => $exclude, + 'orderby' => 'menu_order', + 'order' => 'ASC' +); - $qry = new WP_Query( $args ); +$qry = new WP_Query( $args ); ?>
-
+
-
+
-
+
- have_posts() ): $qry->the_post() ?> -
- -
+ have_posts() ): $qry->the_post() ?> +
+ +
- - + + -
+
-
+
-
+