Skip to content

Commit

Permalink
Disable tag link redirect
Browse files Browse the repository at this point in the history
The tag link redirect is confliting with the post_type archive page
  • Loading branch information
antonio-goncalves-unp committed Dec 14, 2023
1 parent 510b656 commit 3f11379
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/iotcat_elements.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function __construct($name, $singular_name, $post_type, $default_metadata = arra
add_action('init',array($this,'create_post_type'));
add_action('wp_head', array($this,'add_page_header'));
add_action('template_redirect', array($this,'process_redirect'),10,0);
add_action('pre_get_posts', array($this,'pre_get_posts'),10,1);
//add_action('pre_get_posts', array($this,'pre_get_posts'),10,1);
add_filter( "get_default_comment_status", array($this,'get_default_comment_status'), 10, 3 );

$this->icon = 'dashicons-list-view';
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Plugin Name: IoT Catalogue Integration
* Description: Display in WordPress content from IoT Catalogue
* Version: 1.10.0-0
* Version: 1.10.0-1
* Author: UNPARALLEL Innovation, Lda
* Author URI: https://www.unparallel.pt
*/
Expand Down

0 comments on commit 3f11379

Please sign in to comment.