Closed dreamwhisper closed 7 years ago
Spec:
+1
@NicktheGeek I'm not sure how to handle this, but if someone has the plugin, it would be great not to change their current posts per page on update. So, maybe the default needs to just be what is currently set as posts per page.
Then, the filter can be used to update it on new theme activation.
@dreamwhisper it will probably bear some testing, but I've coded this so that the setting defaults to the option in the reading settings. It will require intentionally changing it to alter the value, so it won't affect it until the setting is changed.
@dreamwhisper I've published the release candidate branch. release/1.1
if you want to give it a test. It just includes the 3 issues here https://github.com/copyblogger/genesis-portfolio-pro/milestone/1
@NicktheGeek I think this:
if ( ! $query->is_archive( 'portfolio' ) && ! $query->is_tax( 'portfolio-type' ) ) {
return;
}
Needs to be this:
if ( ! $query->is_post_type_archive( 'portfolio' ) && ! $query->is_tax( 'portfolio-type' ) ) {
return;
}
At the moment the new setting works but it is affecting regular post category archives too:
updated
Confirmed:
Include a posts per page setting for Portfolio archives so it can be set independently from the standard setting.