免費獲取本節源碼及參加【網頁開發入門CRASH COURSE】線上課程:mtache.com/sub3
今日,我會同大家分享如何由零開始,自己去開發一個wordpress主題。
要注意我今日分享的內容 : Wordpress主題開發 - 開發自己的主題(Wordpress Theme),是一個比較進階的教學,你需要懂得基礎的HTML,CSS,Javascript,PHP,和Wordpress基本操作,才會看得懂。
使用軟件:
1. visual studio code (code.visualstu...)
2. filezilla (filezilla-proj...)
使用到的Wordpress Functions:
get_template_directory_uri();
get_header();
get_footer();
the_title();
echo get_the_date();
the_content();
add_theme_support ('post-thumbnails');
the_post_thumbnail_url();
echo get_page_link();
echo home_url();
Basic Post Loop:
if (have_posts()) : while (have_posts()) : the_post();
endwhile; endif;
16 сен 2024