UPDATE wp_options SET option_value = 'http://site.new' WHERE option_value = 'http://site.old';
wp-config.php
изменять доступы к базе. а Будут проблемы пишите xiki118@gmail.com калиас уже переносил проблем небыло <?php $query = new WP_Query(array(
'post_type' => 'partners',
'posts_per_page' => -1
));
$post_in_page = array_chunk($query->posts,4);
if ($query->have_posts()) :?>
<ul class="bxslider-partners partners-slide">
<?php foreach ($post_in_page as $_posts) : ?>
<li>
<?php foreach($_posts as $pst): ?>
$img = get_field('img_partners',$pst->ID);
?>
<div class="img-block-slide">
<img src="<?php echo $img; ?>" alt="<?php echo $pst->post_title?>">
</div>
<?php endforeach;?>
</li>
<?php endforeach;?>
</ul>
<?php endif;?>
add_action('wp_ajax_myajax', 'myajax');
add_action('wp_ajax_nopriv_myajax', 'myajax');
function myajax() {
echo '10';
wp_die();
}
add_action('wp_ajax_(action)', 'my_action_callback');
add_action('wp_ajax_nopriv_(action)', 'my_action_callback');