我用這段代碼創建了一個自定義文章,也是一個閱讀更多按鈕。此帖子成功顯示在歡迎模板上。但是當我點擊閱讀更多按鈕,然後顯示沒有發現!!任何人都可以幫我解決這個問題嗎?Wordpress theme,custm post
謝謝。
我用這段代碼創建了一個自定義文章,也是一個閱讀更多按鈕。此帖子成功顯示在歡迎模板上。但是當我點擊閱讀更多按鈕,然後顯示沒有發現!!任何人都可以幫我解決這個問題嗎?Wordpress theme,custm post
謝謝。
Try this:
<div class="right_pnl_data">
<h1>Regional Race Calendar</h1>
<?php
$args = array('numberposts' => 3, 'order'=> 'DESC', 'orderby' => 'post_date', 'category' => 4);
$postslist = get_posts($args);
foreach ($postslist as $post) : setup_postdata($post);
$a= get_the_date();
?>
<strong><a style="text-decoration:none;" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title() ?></a></strong><br />
<?php endforeach; ?>
</div>
對不起,無法正常工作 –
點擊摘錄鏈接時會發生什麼? –
在此處顯示您的錯誤! –
,請使用以下代碼:
<?php the_excerpt(); ?>
感謝。
對不起,不起作用 –
摘錄鏈接到的URL是什麼? –