Tagged in

PHP

Vu Nam Hung
Vu Nam Hung
Ghi chép linh tinh
More information
Followers
24
Elsewhere
More, on Medium

Adding the “paged” parameter to a query

If WP_Query is altering the main loop and the “paged” parameter is not set you’ll need to add it with get_query_var(). This is so WordPress knows exactly what page it’s on.


Installing WP-CLI with MAMP

About four years ago, I shared a post about WP-CLI. It wasn’t exactly a new project at the time, but it was far less developed than it is now.