隐藏所有图像
如何在Avada主题上显示没有缩略图的投资组合列表(仅标题)?
假设您的投资组合是作为自定义邮政类型创建的,您可以创建一个自定义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;
。