\n" ); absolute_weaver_post_count_clear(); the_post(); if ( ! is_front_page() ) { $GLOBALS['absolute_weaver_pwp_title'] = get_the_title(); // Make breadcrumbs work a bit better } if ( $paged == 1 ) { // only show on the first page // If we have content for this page, let's display it. if ( get_the_content() != '' || ( get_the_title() != '' && ! absolute_weaver_is_checked_page_opt( '_pp_hide_page_title', true ) ) ) { get_template_part( 'template-parts/content', 'page' ); } else { absolute_weaver_edit_link(); } } echo "\n\n"; $top_of_pwp = ob_get_clean(); // now get the top sidebar, etc. if ( post_password_required() ) { get_template_part( 'template-parts/infobar' ); // put the info bar now that the posts info is available echo wp_kses_post( $top_of_pwp ); // this is a double esc - in reality, it already was done in the ob code. // every thing done, so allow comments? // comments_template( '', true ); ?>
< false, 'orderby' => 'date', 'order' => 'DESC', 'paged' => $paged, ); $filter = absolute_weaver_get_per_page_value( '_pp_post_filter' ); // ATW Show Posts filter if ( function_exists( 'atw_showposts_installed' ) && $filter != '' ) { $params = atw_posts_get_filter_params( $filter ); if ( $params != '' ) { // they specified a $filter arg, so use it and wipe out anything else... $fargs = shortcode_parse_atts( $params ); } else { $fargs = ''; } $qargs = atw_posts_get_qargs( $fargs, array() ); $posts_query = new WP_Query( apply_filters( 'absolute_weaver_pwp_wp_query', $qargs ) ); } else { $args = absolute_weaver_setup_post_args( $args ); // setup custom fields for this page $posts_query = new WP_Query( apply_filters( 'absolute_weaver_pwp_wp_query', $args ) ); } // now have to put the sidebar get_template_part( 'template-parts/infobar' ); // put the info bar now that the posts info is available echo wp_kses_post( $top_of_pwp ); // this is a double esc - in reality, it already was done in the ob code. if ( $posts_query->have_posts() ) { // same loop as index.php global $absolute_weaver_sticky; absolute_weaver_content_nav( 'nav-above' ); $sticky_posts = false; // If you specify filters, // then the sticky post code is essentially ignored by WP, so we have to do this ourselves. // So - if there are sticky posts, we have to move them to the top of the posts list, and // manually add 'sticky' to the post's class. (1/11/12) if ( ! absolute_weaver_is_checked_page_opt( '_pp_hide_sticky' ) && ( absolute_weaver_get_per_page_value( '_pp_category' ) || absolute_weaver_get_per_page_value( '_pp_tag' ) || absolute_weaver_get_per_page_value( '_pp_author' ) ) ) { // move sticky posts when cat or tag filters? // Put sticky posts at the top of the posts array $sticky_posts = get_option( 'sticky_posts' ); if ( is_array( $sticky_posts ) && ! empty( $sticky_posts ) ) { $num_posts = count( $posts_query->posts ); $sticky_offset = 0; // Loop over posts and relocate stickies to the front. for ( $i = 0; $i < $num_posts; $i ++ ) { if ( in_array( $posts_query->posts[ $i ]->ID, $sticky_posts ) ) { $sticky_post = $posts_query->posts[ $i ]; // Remove sticky from current position array_splice( $posts_query->posts, $i, 1 ); // Move to front, after other stickies array_splice( $posts_query->posts, $sticky_offset, 0, array( $sticky_post ) ); // Increment the sticky offset. The next sticky will be placed at this offset. $sticky_offset ++; } } } } /* Start the Loop */ $num_cols = absolute_weaver_getopt( 'blog_cols' ); // default $pp = absolute_weaver_get_per_page_value( '_pp_wvrx_pwp_cols' ); if ( $pp ) { $num_cols = $pp; } if ( ! $num_cols || $num_cols > 3 ) { $num_cols = 1; } $sticky_one = absolute_weaver_getopt_checked( 'blog_sticky_one' ) && $paged <= 1; $first_one = absolute_weaver_getopt_checked( 'blog_first_one' ) && $paged <= 1; $hide_n_posts = absolute_weaver_get_per_page_value( '_pp_hide_n_posts' ); if ( $hide_n_posts == '' || $hide_n_posts < 1 || $hide_n_posts > 100 ) { $hide_n_posts = 0; } absolute_weaver_post_count_clear(); echo( "