如何将GET_Relative_Date和POST_EXCEPT添加到此GET_LATEST_POST查询?

时间:2018-01-26 作者:SuperAtic

尝试了不同的实施方法,但没有任何成功,没有任何帮助?

<?php
$recent_posts = wp_get_recent_posts(array(
    \'numberposts\' => 99, // Number of recent posts thumbnails to display
    \'post_type\' => \'post\',
    \'post_status\' => \'publish\' // Show only the published posts
));
foreach($recent_posts as $post) : ?>
    <div class="cards">
        <div class="card">
            <h4><?php echo $post[\'post_title\'] ?></h4></a>
            <p class="card-text">Happened time ago</p>
            <p class="card-text">... <small><a href="<?php echo get_permalink($post[\'ID\']) ?>"><i class="fa fa-eye"></i> Read more</a></small></p>
        </div>
    </div>

1 个回复
SO网友:swissspidy
结束

相关推荐