meta->for_current_page()->title; // global $PAGEN; $PAGEN = filter_var ($_REQUEST["PAGEN"], FILTER_SANITIZE_STRING) ? filter_var ($_REQUEST["PAGEN"], FILTER_SANITIZE_STRING) : 1; $author_id = get_the_author_meta('ID'); // $count_user_posts = count_user_posts( $author_id ); // string(2) "16" $container_class = isset($args['container_class']) ? $args['container_class'] : 'default'; ?> > <?php echo $title; ?><?php if ($PAGEN > 1) echo ". Страница " . $PAGEN; ?> count; } $tag = get_queried_object(); $url = $_SERVER['REQUEST_URI']; $tag = $tag->slug; $author_slug = get_the_author_meta('user_nicename'); $total_pages = get_pages_count($tag); $total_pages2 = get_pages_count2($tag); function get_pages_count2($tag = false) { $args = array( 'category_name' => 'Blog Post', 'numberposts' => -1, ); if(($tag)&&($tag!='all')){ $args['tag'] = $tag; } $posts = new WP_Query( $args ); $total = $posts->found_posts; return $total; wp_reset_postdata(); } $numberofpostsnew = $total_pages2; $term = get_term_by('slug', $tag, $taxonomy); if ($tag) { $suffix = '/blog/tag/'. $tag; } elseif ($author_slug && str_contains($url, '/author')) { $suffix = '/blog/author/'. $author_slug; } else { $suffix = "/blog"; } ?>
' . var_export($_REQUEST, true) . ''; // var_dump($_REQUEST); echo '
'; var_dump($_REQUEST['tags']); echo '
'; var_dump($_GET); // ob_start(); // header("Location: index.php"); // exit( ); // // if ($_REQUEST['tags']){ // wp_redirect( home_url() ); // exit; // } // echo $tag . '$tag'; ?>