我正在尝试显示具有自定义分类的自定义帖子类型,但我没有任何运气.什么都没有出现.我感谢任何帮助.
帖子类型=图库
自定义分类标准slug = photoarea
'photoarea'我想显示=第四

<?php
$args = array(
'post_type' => 'gallery',
'tax_query' => array(
array(
'taxonomy' => 'photoarea',
'field' => 'fourth',
)
),
'posts_per_page' => 10,
);
$the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post();
the_post_thumbnail();
endwhile; endif;
wp_reset_query();
?>
Run Code Online (Sandbox Code Playgroud) 我试图使用CSS边框实现以下图像示例.这可能吗?此外,它是否也可以响应?我在这里开始小提琴.我知道我已经在某个地方见过这个,但不记得在哪里.

这是我到目前为止 -
HTML
<div class="container">
<div class="row">
<div class="sign-up col-sm-9">
<div class="col-sm-4">
<h3>SIGN UP to get the latest updates on Security News</h3>
</div>
<div class="col-sm-4">
</div>
<div class="col-sm-4">
</div>
</div> <!-- /.sign-up -->
<div class="invert"></div>
<div class="submit col-sm-3">
<input type="submit" value="Submit">
</div>
</div> <!-- /.row -->
</div><!-- /.container -->
Run Code Online (Sandbox Code Playgroud)
CSS -
.sign-up {
background: #002d56;
padding: 0px 0px;
color: #ffffff;
font-size: 20px;
}
.sign-up h3{
padding: 10px 0px;
font-size: 20px;
}
.sign-up:after {
content: ""; …Run Code Online (Sandbox Code Playgroud) 有没有办法在点击时全屏显示Google Chart?
我已经玩了好几个小时了
JS -
$('#chart_div').on('click', function(e) {
$(this).css({
width: "100%",
height: "100%",
margin: "0",
border: "none"
});
});
Run Code Online (Sandbox Code Playgroud)
CSS -
#chart_div {
width: 100 px;
height: 100 px;
margin: 20 px;
background - color: red;
border: 1 px solid black;
}
body, html {
height: 100 % ;
}
Run Code Online (Sandbox Code Playgroud)
HTML - 您可以根据Apache许可证的条款(http://www.apache.org/licenses/LICENSE-2.0.html)自由复制和使用此示例
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>
Google Visualization API Sample
</title>
<script type="text/javascript" …Run Code Online (Sandbox Code Playgroud) 我只是想获得一个简单的 docker 开发环境设置,但 docker 没有安装 php 的 mysql 扩展。我收到致命错误 - 调用未定义的函数 mysql_connect()。我尝试了不同的 php 版本(5.4、5.5、5.6、7.0),结果都相同。任何帮助,将不胜感激。
docker-compose.yml
version: '2'
volumes:
database_data:
driver: local
services:
nginx:
image: nginx:latest
ports:
- 8080:80
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
volumes_from:
- php
php:
build: ./docker/php/
expose:
- 9000
volumes:
- .:/var/www/html
testing:
build: ./docker/php/
volumes_from:
- php
mysql:
image: mysql:latest
expose:
- 3306
volumes:
- database_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: project
MYSQL_USER: project
MYSQL_PASSWORD: project
Run Code Online (Sandbox Code Playgroud)
Dockerfile
FROM php:7.0-fpm
# Install pdo_mysql
RUN apt-get update \
&& echo 'deb …Run Code Online (Sandbox Code Playgroud)