這一篇主要介紹 add_theme_support() 讓你的佈景主題增加一些功能,通常需放在 after_setup_theme() 中就要呼叫使用。
要使用這個功能之前,必須讓你的佈景有支援『特色圖片』功能,記得在 functions.php 裡面寫一行: add_theme_support(‘post-thumbnails’);
© 2025 賽門的WordPress學習筆記 — Powered by WordPress
Theme by Anders Noren — Up ↑