Skip to content

Commit

Permalink
Fix CPT taxonomies so they ignore the custom permalink structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickpagz committed Sep 20, 2024
1 parent 01a797b commit d7c43c3
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -355,11 +355,12 @@ GitHub.sublime-settings
### VisualStudioCode ###
.vscode/
.vscode/*
!.vscode/settings.json
.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets
themes/osi/.vscode/settings.json

# Local History for Visual Studio Code
.history/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ public function get_args() {

return wp_parse_args(
[
'rewrite' => array( 'slug' => 'license-category' ),
'rewrite' => array(
'slug' => 'license-category',
'with_front' => false,
),
],
parent::get_args()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ public function get_args() {
return wp_parse_args(
[
'hierarchical' => true,
'rewrite' => array( 'slug' => 'publication' ),
'rewrite' => array(
'slug' => 'publication',
'with_front' => false,
),

],
parent::get_args()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ public function get_args() {
return wp_parse_args(
[
'hierarchical' => false,
'rewrite' => array( 'slug' => 'seat-type' ),
'rewrite' => array(
'slug' => 'seat-type',
'with_front' => false,
),
],
parent::get_args()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ public function get_args() {
return wp_parse_args(
[
'hierarchical' => false,
'rewrite' => array( 'slug' => 'status' ),
'rewrite' => array(
'slug' => 'about/board-of-directors',
'with_front' => false,
'hierarchical' => false,
),
],
parent::get_args()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ public function get_args() {
return wp_parse_args(
[
'hierarchical' => false,
'rewrite' => array( 'slug' => 'steward' ),
'rewrite' => array(
'slug' => 'steward',
'with_front' => false,
),
],
parent::get_args()
);
Expand Down

0 comments on commit d7c43c3

Please sign in to comment.