开发者 | eduardozulian |
---|---|
更新时间 | 2015年10月31日 03:21 |
捐献地址: | 去捐款 |
PHP版本: | 3.0 及以上 |
WordPress版本: | 4.3 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
a-featured-page-widget
directory to the /wp-content/plugins/
directorySure you can! Just call the_widget()
wherever you want to display your featured page. If you want to customize it, there's four arguments:
page
: The page ID. Required.title
: The widget title.image-size
: The post thumbnail size.link-text
: The text that will replace "Continue reading". You may leave it empty too.If you don't know the page ID, you can try [
get_page_by_path()](http://codex.wordpress.org/Function_Reference/get_page_by_path) function:
ID );
?>
`
Yes. In your functions.php
file, you cand use the afpw_link_text
filter:
`
`
First, check if the option for excerpts is not showing under "Screen Options". If that's the case, probably your theme doesn't support excerpts in pages. You need to use add_post_type_support()
inside your functions.php
file:
`
`
Arnaldo Baptista, Rita Lee and Sérgio Dias, also known as Os Mutantes, a Brazilian psychedelic rock band of the late '60s. You should check them out!
post-thumbnail
and entry-image
.the_widget()
.page-link
argument with link-text
.