the_content

過濾鉤子
apply_filters( 'the_content', get_the_content()
定義位置
  • wp-content/themes/twentyseventeen/template-parts/post/content-video.php , line 45
相關勾子
phone_contentthe_content_feedthe_content_exportthe_editor_contentembed_content
相關方法
the_contentthe_content_rssget_the_contentthe_commentthe_content_feedget_the_content_feed
引入
n/a
棄用
-

the_content是一個模板標籤,顯示一個文章或頁面的全部內容。它通常用於WordPress主題的主迴圈,以顯示部落格或檔案頁上的每個文章的內容。

應用於在螢幕上列印之前從資料庫檢索到的文章內容(也用於一些其他操作,如跟蹤)。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$content = apply_filters( 'the_content', get_the_content() );
$content = apply_filters( 'the_content', get_the_content() );
$content = apply_filters( 'the_content', get_the_content() );

常見問題

FAQs
檢視更多 >