0
我正在使用「the_content」函數,但內容太長,我想在不創建函數,過濾器等的情況下剪切它。任何想法?從WordPress的「the_content」函數中剪切文本
我正在使用「the_content」函數,但內容太長,我想在不創建函數,過濾器等的情況下剪切它。任何想法?從WordPress的「the_content」函數中剪切文本
您可以在帖子中使用quicktag <!--more-->
告訴the_content函數在哪裏剪切文本。
另一種方法是使用the_excerpt函數而不是the_content
。使用the_excerpt
的一個原因是,您無需打擾<!--more-->
quicktags。
嘗試使用the_excerpt函數而不是the_content,該URL:https://www.youtube.com/watch?v=nS-3kC9VC4A可能會幫助您 – Arun