這是我function.phpwordpress 3.5.1精選圖片沒有顯示...?
<?php if (function_exists('add_theme_support')){ add_theme_support('post-thumbnails'); }
if (function_exists('add_image_size')){ add_image_size('featured', 400, 340, true); add_image_size('post-thumb', 100, 140, true); } ?>
裏面這是什麼我的index.php裏面
<?php the_post_thumbnail('post-thumb'); ?>
- 在
Screen Options
特色圖片啓用。 - 特色圖片元顯示於
Edit Post
- 精選圖片已設置。
問題是縮略圖沒有顯示在index.php(主頁)中。我錯過了什麼嗎?非常感謝提前。
我已經完成這件事,但沒有工作。我不知道我做錯了什麼。 – s4m 2013-02-15 05:55:19
關閉!問題解決了! – s4m 2013-02-15 14:03:06
@ s4m請寫下你是如何解決問題的。 – OnkelK 2013-09-01 09:10:24