SELECT MAX(fieldname) FROM table;
[Mon Jul 19 12:08:11.580861 2021] [fcgid:warn] [pid 20847:tid 139862279661312] [client 188.162.167.221:33694] mod_fcgid: stderr: База данных WordPress возвратила ошибку Duplicate entry '0' for key 'PRIMARY' в ответ на запрос INSERT INTO `wp_usermeta` (`user_id`, `meta_key`, `meta_value`) VALUES (2, 'session_tokens', 'a:1:{s:64:\\"a1690180c731ea787cbd6050003558dd1f19b3d6b50566202368a405f978b8f4\\";a:4:{s:10:\\"expiration\\";i:1626858491;s:2:\\"ip\\";s:15:\\"188.162.167.221\\";s:2:\\"ua\\";s:147:\\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 YaBrowser/21.6.1.274 Yowser/2.5 Safari/537.36\\";s:5:\\"login\\";i:1626685691;}}'), выполненный wp_signon, wp_set_auth_cookie, WP_Session_Tokens->create, WP_Session_Tokens->update, WP_User_Meta_Session_Tokens->update_session, WP_User_Meta_Session_Tokens->update_sessions, update_user_meta, update_metadata, add_metadata, referer: https://test1.test1.ru/wp-login.php?redirect_to=https://test1.test1.ru/wp-admin/&reauth=1
visibility: hidden;
opacity: 0;
transition: visibility 0s, opacity 0.5s linear;
visibility: visible;
opacity: 1;
h2:after {
content: "";
display: block;
height: 200vh;
width: 1px;
position: absolute;
left: 57px;
top: 0;
background: #f00;
}
.mcb-wrap {
overflow: hidden;
}
add_action( 'wp_enqueue_scripts', 'include_custom_scripts' );
function include_custom_scripts() {
wp_enqueue_script( 'basket', get_stylesheet_directory_uri() . '/js/basket.min.js', array('jquery'), null, true );
wp_enqueue_script( 'main', get_stylesheet_directory_uri() . '/js/main.min.js', array('jquery'), null, true );
}
get_theme_file_uri()
, которая проверяет наличие файла в дочерней теме, это довольно удобноfilemtime()
add_action( 'wp_enqueue_scripts', 'include_custom_scripts' );
function include_custom_scripts() {
wp_enqueue_script( 'basket', get_theme_file_uri( '/js/basket.min.js' ), array('jquery'), filemtime( get_theme_file_path( '/js/basket.min.js' ) ), true );
wp_enqueue_script( 'main', get_theme_file_uri( '/js/main.min.js' ), array('jquery'), filemtime( get_theme_file_path( '/js/main.min.js' ) ), true );
}
<?php
$args = array(
'role__in' => array( 'administrator', 'author', 'editor' ),
'orderby' => 'display_name',
'order' => 'ASC',
'number' => '6',
);
$authors = get_users( $args );
?>
<?php foreach ( $authors as $author ) :
$user_id = $author->ID;
$phone_number = get_field('user_phone', 'user_'. $user_id);
$phone_number_trimmed = preg_replace("/[^0-9]/", '', $phone_number);
?>
<article class="author">
<?php if ( $phone_number ) : ?>
<a href="<?php echo $phone_number_trimmed ?>" class="user-phone"><?php echo $phone_number ?></a>
<?php endif ?>
</article>
<?php endforeach; ?>
$term = get_queried_object();
$my_gallery = get_field('my_gallery', $term);
echo do_shortcode($my_gallery);
function archive_product_shortcode() {
$term = get_queried_object();
if ( function_exists('get_field') ) {
$my_shortcode = get_field('my_shortcode', $term);
echo do_shortcode( $my_shortcode );
}
}
add_action('woocommerce_archive_description', 'archive_product_shortcode', 20 );