window.open('https://drive.google.com/file/d/19eNHxizyb-iA-TidTxfUrNbdH6adivip/view?usp=sharing','_blank');
location = 'https://drive.google.com/file/d/19eNHxizyb-iA-TidTxfUrNbdH6adivip/view?usp=sharing';
Version: 3.1.0.1553430030
Version: 3.1.0.1553430031
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array( 'paged' => $paged ,'category_name' => $categ, 'post_type' => 'ray_tipov_item');
$args = array( 'posts_per_page' => -1 ,'category_name' => $categ, 'post_type' => 'ray_tipov_item');
/wp-content/themes/ПАПКА_ТЕМЫ/images/image.jpg
add_action( 'wp_enqueue_scripts', 'action_function_name_7714', 99 );
function action_function_name_7714(){
wp_localize_script( 'jquery', 'mytheme', array(
'template_url' => get_template_directory_uri(),
) );
}
mytheme.template_url + '/images/image.jpg'
$args = array('post_type' => 'product', 'product_cat' => 'accessories', 'test1' => $product_tag );
$args = array('post_type' => 'product', 'meta_key' => 'test1', 'meta_value' => $product_tag );
home.php
, page.php
— это для "просто страниц".<?php
$custom_query = new WP_Query( $args );
if ( $custom_query->have_posts() ) {
while ( $custom_query->have_posts() ) {
$custom_query->the_post();
?>
<div>News</div>
<?php
}
if ( $custom_query->max_num_pages > 1 ) {
$orig_query = $wp_query;
$wp_query = $custom_query;
the_posts_pagination( array(
'show_all' => true
) );
$wp_query = $orig_query;
}
wp_reset_postdata();
} else {
echo 'Ничего не найдено';
}
?>