add_theme_support 允许主题去支持特定的主题功能。
add_action
WP_Query

hooks:
add_action()
wp_enqueue_scripts

add_filter()

query_posts( array|string $query )函数会舍弃页面默认查询而重新进行查询,而且分页功能会失效 说明
Pagination won’t work correctly, unless you set the ‘paged’ query var appropriately: adding the paged parameter

作者 铁血 汉子 2016年11月10日
2024/03/29/01:59:44am 2016/11/10/17:58:30
0 1126