How not to sort a term in a particular page
-
Hi there,
I’m using the plugin on my site and evertyhting works smoothly.
There is a custom page (single-book.php) where I want that custom terms (sidetheme) not to be sorted, I want them to appear in the order that they are inserted to the post.
I tried:
add_filter( ‘customtaxorder_exclude_taxonomies’, ‘add_taxonomy_to_customtaxorder_exclude_taxonomies’);
function add_taxonomy_to_customtaxorder_exclude_taxonomies( $taxonomies ) {
$taxonomies = array();
if ( is_page_template( ‘single-book.php’ ) ) {
$taxonomies[] = ‘sidetheme’;
return $taxonomies;
}
}
but I got this error:
Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/gunisigiyou.com/httpdocs/wp-content/plugins/custom-taxonomy-order-ne/customtaxorder.php on line 377
and the terms are still sorted.
Can you please help?
Thank you,
HalukThe page I need help with: [log in to see the link]
- The topic ‘How not to sort a term in a particular page’ is closed to new replies.