2013-12-16 27 views
0

我用這段代碼創建了一個自定義文章,也是一個閱讀更多按鈕。此帖子成功顯示在歡迎模板上。但是當我點擊閱讀更多按鈕,然後顯示沒有發現!!任何人都可以幫我解決這個問題嗎?Wordpress theme,custm post

謝謝。

the code is here

+0

摘錄鏈接到的URL是什麼? –

回答

0
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> 
+0

對不起,無法正常工作 –

+0

點擊摘錄鏈接時會發生什麼? –

+0

在此處顯示您的錯誤! –

0

,請使用以下代碼:

<?php the_excerpt(); ?> 

感謝。

+0

對不起,不起作用 –