We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
function wpt_portfolio_custom_posts_per_page( $query ) { global $wp_the_query; if ( $wp_the_query === $query && !is_admin() && is_post_type_archive( 'portfolio' ) ) { $query->set( 'posts_per_page', '9' ); } }
The text was updated successfully, but these errors were encountered:
/** * Sets posts displayed per portfolio page to 9 */ function wpt_portfolio_custom_posts_per_page( $query ) { global $wp_the_query; if ( $wp_the_query === $query && !is_admin() ) { if ( is_post_type_archive( 'portfolio' ) || is_tax( 'portfolio_tag' ) || is_tax( 'portfolio_category' ) ) $query->set( 'posts_per_page', '9' ); } }
Sorry, something went wrong.
No branches or pull requests
function wpt_portfolio_custom_posts_per_page( $query ) {
global $wp_the_query;
if ( $wp_the_query === $query && !is_admin() && is_post_type_archive( 'portfolio' ) ) {
$query->set( 'posts_per_page', '9' );
}
}
The text was updated successfully, but these errors were encountered: