This file contains 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
/* :::::::::::::::::::::::::::::::::::: | |
* Unlimited posts (articles) on blog page | |
* ::::::::::::::::::::::::::::::::::::: | |
* Set the number of posts per page (post count) unlimited. Must be in functions.php */ | |
function modify_current_query_loop( $query ){ | |
//only if main query, you can also test with $query->is_tax('example-cpt-slug') or $query->is_archive() in the condition to be more accurate to your case | |
if( $query->is_main_query() ): |