_GET['value'] = '$("body").html("<div class=\"container_main\">body</div>");';
$("body").html("<div class='container_main'>body</div>");
"
function my_login_logo() {
?>
<style type="text/css">
body.login div#login h1 a {
background-image: url(<?php echo get_bloginfo( 'template_directory' ) ?>/assets/img/login_logo.png);
height: 150px;
margin-left: 0px;
width: 310px;
padding-bottom: 0px;
margin-bottom: 0px;
background-attachment: scroll;
background-repeat: no-repeat;
background-position: center top;
background-size: auto;
}
</style>
<?php
}
add_action( 'login_enqueue_scripts', 'my_login_logo' );
function my_login_logo_url() {
return get_bloginfo( 'url' );
}
add_filter( 'login_headerurl', 'my_login_logo_url' );
function my_login_logo_url_title() {
return 'my login logo url title...';
}
add_filter( 'login_headertitle', 'my_login_logo_url_title' );
<?php
$TESTrel_producers = new WP_Query( array(
'post_type' => 'producers',
'post__not_in' => array($post->ID),
'posts_per_page' => 5,
'orderby' => 'meta_value_num',
'order' => 'ASC',
'meta_key' => 'movies_of_this_producer',
'offset' => 0,
) );
?>
<?php if( $TESTrel_producers ): ?>
<div class="content_block_wrap two_columns_right col-md-6">
<div class="content_block transparent_block_with_border">
<div class="block_title">
Title here
</div>
<ul>
<?php
while ( $TESTrel_producers->have_posts() ) :
$TESTrel_producers->the_post();
?>
<li class="content_item col-xs-12">
<a class="post_thumbnail" href="<?php echo get_permalink( $TESTrel_producers->ID ); ?>">
<?php echo get_the_post_thumbnail( $TESTrel_producers->ID, '90x60-thumb' ); ?>
</a>
<a href="<?php echo get_permalink( ); ?>"><?php echo get_the_title( ); ?></a>
Number of related posts: <?php
$producers_movies = get_posts(array(
'post_type' => 'movies',
'meta_query' => array(
array(
'key' => 'movies_of_this_producer',
'value' => '"' . get_the_ID() . '"',
'compare' => 'LIKE'
)
)
));
if ($producers_movies) {
echo count($producers_movies);
} esle {
echo '0';
}
?>
</li>
<?php
endwhile;
?>
</ul>
</div>
</div>
<?php endif; ?>
<?php
wp_reset_postdata();
?>
<?php
echo $producer_count = count(get_field('movies_of_this_producer'));
?>
<?php
$producers_movies = get_posts(array(
'post_type' => 'movies',
'meta_query' => array(
array(
'key' => 'movies_of_this_producer',
'value' => '"' . get_the_ID() . '"',
'compare' => 'LIKE'
)
)
));
if ($producers_movies) {
echo count($producers_movies);
} esle {
echo '0';
}
?>