在avada主题融合wordpress中显示没有图像的投资组合列表

如何在不显示Avada主题缩略图的情况下显示投资组合列表(仅标题)?


#1


假设你的投资组合项目创建为自定义帖子类型, 则可以创建一个自定义的wordpress查询来获取它们。

$args = array(
    'post_type' => 'your_custom_post_type_slug', 'post_status' => 'publish'
);

$portfolio_items = new WP_Query( $args );
if( $portfolio_items->have_posts() ){
    while( $portfolio_items->have_posts() ){
        $portfolio_items->the_post();
        the_title();
    }
}

另外, 你可以使用CSS display:none;隐藏所有图像。

来源:

https://www.srcmini02.com/62967.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_37711.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?