How to copy a specific piece of the post to another page

Anyone know how to copy specific piece over of the_content(); of post, to another page distinguishing this content by po

Anyone know how to copy specific piece over of the_content(); of post, to another page distinguishing this content by post ID? I want to copy some gallery from each post to page gallery. Gallery code:

<?php $fields = CFS()->get( 'gallery' );
 foreach ( $fields as $field ) { ?>
<div class="single-row">
    <div class="row">
        <div class="single-image-gallery col-md-3 col-sm-12">
            <a href="<?php echo $field['add_img']; ?>" class="foobox" rel="gallery">
                <img src="<?php echo $field['add_img']; ?>" alt="<?php echo $field['alt1']; ?>">
            </a>

        </div>
        <div class="single-image-gallery col-md-3 col-sm-12">
            <a href="<?php echo $field['add_img2']; ?>" class="foobox" rel="gallery">
                <img src="<?php echo $field['add_img2']; ?>" alt="<?php echo $field['alt2']; ?>">
            </a>
        </div>
        <div class="single-image-gallery col-md-3 col-sm-12">
            <a href="<?php echo $field['add_img3']; ?>" class="foobox" rel="gallery">
                <img src="<?php echo $field['add_img3']; ?>" alt="<?php echo $field['alt3']; ?>">
            </a>

        </div>
        <div class="single-image-gallery col-md-3 col-sm-12">
            <a href="<?php echo $field['add_img4']; ?>" class="foobox" rel="gallery">
                <img src="<?php echo $field['add_img4']; ?>" alt="<?php echo $field['alt4']; ?>">
            </a>

        </div>
    </div>
</div>
<?php } ?>

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745316515a4622244.html

相关推荐

  • How to copy a specific piece of the post to another page

    Anyone know how to copy specific piece over of the_content(); of post, to another page distinguishing this content by po

    7小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信