Created
March 21, 2020 11:08
-
-
Save na0x2c6/d9b6d7ac7cdbe8c692e149ba3434a0aa to your computer and use it in GitHub Desktop.
WordPress: get the paged number
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('wp_head', function() { | |
$paged = get_query_var('paged'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment