Skip to content

Commit

Permalink
Taxonomy pages for people also retrieve pages written about the person
Browse files Browse the repository at this point in the history
  • Loading branch information
jcvignoli committed Oct 6, 2024
1 parent 4d73b2d commit 00502eb
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions dist/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
**Changelog**

v.4.2.1
* [technical] Taxonomy pages for people also retrieve pages written about the person (previously only posts were retrieved, added 'page' to queries in classes Polylang and Taxonomy_People_Standard)

v.4.2
* [technical] Compatible 6.7 (load_plugin_textdomain() is loaded in add_action('init') in class Core)
Expand Down
2 changes: 1 addition & 1 deletion dist/class/plugins/auto/class-polylang.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public function rewrite_string_with_polylang_url( string $content, ?string $extr
public function get_polylang_taxo_query( string $polylang_lang, string $imdburlstringtaxo, string $person_name, string $role ): array {

return [
'post_type' => [ 'post' ],
'post_type' => [ 'post', 'page' ],
'post_status' => 'publish',
'numberposts' => -1,
'nopaging' => true,
Expand Down
2 changes: 1 addition & 1 deletion dist/class/theme/class-taxonomy-people-standard.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ private function display_related_posts(): string {
} elseif ( strlen( $this->person_name ) > 0 ) {

$args = [
'post_type' => [ 'post' ],
'post_type' => [ 'post', 'page' ],
'post_status' => 'publish',
'numberposts' => -1,
'nopaging' => true,
Expand Down
1 change: 1 addition & 0 deletions src/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
**Changelog**

v.4.2.1
* [technical] Taxonomy pages for people also retrieve pages written about the person (previously only posts were retrieved, added 'page' to queries in classes Polylang and Taxonomy_People_Standard)

v.4.2
* [technical] Compatible 6.7 (load_plugin_textdomain() is loaded in add_action('init') in class Core)
Expand Down
2 changes: 1 addition & 1 deletion src/class/plugins/auto/class-polylang.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public function rewrite_string_with_polylang_url( string $content, ?string $extr
public function get_polylang_taxo_query( string $polylang_lang, string $imdburlstringtaxo, string $person_name, string $role ): array {

return [
'post_type' => [ 'post' ],
'post_type' => [ 'post', 'page' ],
'post_status' => 'publish',
'numberposts' => -1,
'nopaging' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/class/theme/class-taxonomy-people-standard.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ private function display_related_posts(): string {
} elseif ( strlen( $this->person_name ) > 0 ) {

$args = [
'post_type' => [ 'post' ],
'post_type' => [ 'post', 'page' ],
'post_status' => 'publish',
'numberposts' => -1,
'nopaging' => true,
Expand Down

0 comments on commit 00502eb

Please sign in to comment.