Skip to content

Instantly share code, notes, and snippets.

Working from home

Štěpán Kulík Kuldas

Working from home
View GitHub Profile
Kuldas / wordpress-pagination-frontpage.php
Created Feb 10, 2021 — forked from yankiara/wordpress-pagination-frontpage.php
Allow Wordpress posts pagination on frontpage
View wordpress-pagination-frontpage.php
* Put following code BEFORE running the query (WP loop, Oxygen's repeater, etc.)
* What it does:
* - updates query with right page number variable to display the correct page
* - assigns the query to wp_query so that pagination links work
function handle_pagination_on_frontpage( $query ) {