首页  css样式 head  foot

<mip-link title="<?php the_title(); ?>" href="<?php the_permalink(); ?>">

   <mip-img 

layout="responsive" 

alt="<?php the_title(); ?>" 

<?php 

$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(),'full');

$img_url_out = $large_image_url[0];

echo 'src="'.$img_url_out.'"';

$img_width = $img_url[1]; // Get the width

$img_height = $img_url[2]; // Get the height

echo 'width="'.$img_width.'"';

echo 'height="'.$img_height.'"';

?>">

</mip-img>

</mip-link>

'img' => 'mip-img layout="responsive"' ,  

//详细页图片

function all_img($soContent){

$soImages = '~<img [^\>]*\ />~';

preg_match_all( $soImages, $soContent, $thePics );

$allPics = count($thePics);

if( $allPics > 0 ){

foreach($thePics[0] as $v){

}

}

else {

echo "没图片";

}

}

register_nav_menus( array(

'primary' => __( 'Primary Navigation'),

));

//详细页图片end

<?php all_img($post->post_content);?>

<?php 

$img_id = get_post_thumbnail_id(337); // 35 being the ID of the Post

$img_url = wp_get_attachment_image_src($img_id,'full');

$img_url_out = $img_url[0];

echo 'src="'.$img_url_out.'"';

?>

<mip-link title="<?php the_title(); ?>" href="<?php the_permalink(); ?>">

   <mip-img 

layout="responsive" 

alt="<?php the_title(); ?>" 

<?php 

$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full');

$img_url_out = $large_image_url[0];

echo 'src="'.$img_url_out.'"';

$img_width = $img_url[1]; // Get the width

$img_height = $img_url[2]; // Get the height

echo 'width="'.$img_width.'"';

echo 'height="'.$img_height.'"';

?>">

</mip-img>

</mip-link>

echo '<mip-link title="123" href="123">';

    echo '<mip-img layout="responsive" alt="123123"';

$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full');

$img_url_out = $large_image_url[0];

echo 'src="'.$img_url_out.'"';

$img_width = $img_url[1]; // Get the width

$img_height = $img_url[2]; // Get the height

echo 'width="'.$img_width.'"';

echo 'height="'.$img_height.'">';

echo '</mip-img>';

echo '</mip-link>';

温馨提示! 你需要支付 ¥1.00 元后才能查看付费内容
点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论

热门产品

历史上的今天:03月29日

热门专题

云南巨榕教育投资集团有限公司|云南巨榕教育投资集团有限公司,巨榕教育集团,巨榕教育
云南巨榕教育投资集团有限公司
卓越综合高中|卓越综合高中
卓越综合高中
安徽中源管业|安徽中源管业,安徽中源管业mpp电力管,安徽中源管业cpvc电力管,安徽中源管业pe穿线管,安徽中源管业电力管,安徽中源管业排水管,安徽中源管业通信管,安徽中源管业管材
安徽中源管业
云南开放大学|云南开放大学报名,云南开放大学报考,云南开放大学,什么是云南开放大学,云南开放大学学历,云南开放大学学费,云南开放大学报名条件,云南开放大学报名时间,云南开放大学学历,云南开放大学专业
云南开放大学
APP开发|app开发_app开发公司_app软件开发_专业app开发_云南app开发公司_app定制_原生app开发定制
APP开发
弥勒综合高中|弥勒综合高中
弥勒综合高中
自考本科|自考本科有用吗,自考文凭,自考本科文凭,自考文凭有用吗,自考本科文凭有用吗,自考文凭承认吗
自考本科
易捷尔单招|易捷尔单招,易捷尔单招培训,易捷尔单招报名,易捷尔单招考试,易捷尔单招培训学校,易捷尔单招分数
易捷尔单招

微信小程序

微信扫一扫体验

立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部