The plugin throws a fatal error after update to WP 4.7.
]]>PHP Fatal error: Cannot redeclare update_termmeta_cache() (previously declared in /wp-includes/taxonomy.php:1690) in /wp-content/plugins/custom-taxonomy-sort/includes/simple-term-meta.php on line 93
This plugin took my website offline. Thankfully my host was able to spot the culprit and disable the plugin. As it has not been updated in 4 years I assume it is unsafe to use?
]]>Does not work
]]>Cannot redeclare update_termmeta_cache() (previously declared in /public/wp-includes/taxonomy.php:1684)……
Please update the plugin.
]]>This plugin throws this error because of a check against an argument that may not be set – this fix should overcome that:
// By default, the array is sorted ASC; sort DESC if needed
if (
(
isset( $args['order'] )
&& isset( $args['orderby'] )
&& $args['orderby'] == $this->orderby_parameter
&& $args['order'] == 'DESC'
) || (
isset( $args['orderby'] )
&& $args['orderby'] != $this->orderby_parameter
&& $this->get_sort_order() == 'DESC'
)
) {
krsort( $ordered_terms );
}
]]>
After the get_terms() method is defined in line 293 use wp_parse_args() to ensure $args values exist:
function get_terms( $terms, $taxonomies, $args ) {
$args = wp_parse_args( $args, array(
'orderby' => '',
'order' => ''
) );
]]>
hello,
this plugin doesnt work, I have tried uninstalling and reinstalling and it still doesnt work.
]]>No errors found when running on PHP5.3
But this error is found running PHP5.4
Warning: Illegal string offset ‘orderby’ in domain.com\wp-content\plugins\custom-taxonomy-sort\custom-taxonomy-sort.php on line 295
There is an error in the dashboard:
Warning: Invalid argument supplied for foreach() in /wp-content/plugins/custom-taxonomy-sort/custom-taxonomy-sort.php on line 305
line 305 foreach ( $terms as $term ) {
fixed using
foreach ((array)$terms as $term ) {
please fix in your next release
thank you
https://www.ads-software.com/extend/plugins/custom-taxonomy-sort/
]]>Am trying to find documentation of this plugin and how to access the pages for ordering taxonomies.
Can you please provide details on custom order pages?
https://www.ads-software.com/extend/plugins/custom-taxonomy-sort/
]]>Generally this plugin is terrific, thanks!!
I am, however, getting the following error on any blog post category after implementing the plugin:
Warning: Illegal string offset ‘orderby’ in /homepages/31/d160446892/htdocs/ptglatest/wp-content/plugins/custom-taxonomy-sort/custom-taxonomy-sort.php on line 329
Warning: Illegal string offset ‘orderby’ in /homepages/31/d160446892/htdocs/ptglatest/wp-content/plugins/custom-taxonomy-sort/custom-taxonomy-sort.php on line 330
https://www.ads-software.com/extend/plugins/custom-taxonomy-sort/
]]>the test page is here:
https://viatransferdev.tracyappsdesign.com/menu/
here’s the code for that page:
<?php $terms = get_terms('menucategory');
$count = count($terms); ?>
<?php if ($count > 0) {
foreach ( $terms as $term) { ?>
<h2 class="menuCategoryTitle"><?php echo $term->name; ?></h2>
<div class="menuCategory">
<?php $loop = new WP_Query(array('menucategory' => $term->slug, 'post_type' => menu, 'orderby' => custom_sort, 'order' => ASC));
while ( $loop->have_posts() ) : $loop->the_post(); ?>
<div class="menuItem">
<h3><?php the_title(); ?></h3>
<?php the_content(); ?>
</div><!--/menuItem-->
<?php endwhile; ?>
</div><!--/menuCategory-->
<?php }
} ?>
and this is how the hierarchy of the custom tax is set up: (the “order” value will be in parentheses)
(i number by 10’s so that if the client wants to add a category between 2 and 3 (of like, 20) all the others after don’t need to be renumbered as well)
is this a bug? something wrong with my code? or am i misunderstanding how the plugin works?
thanks!
https://www.ads-software.com/extend/plugins/custom-taxonomy-sort/
]]>Is it possible to use this plugin to control which of the categories will show when using get_category() for a multiple-categories-post?
https://www.ads-software.com/extend/plugins/custom-taxonomy-sort/
]]>Dear king,
i’m trying to use your great plugin with Related post, but it always use the default wordpress category order.
Please any help appreciate.
Here the code:
function get_related_posts($postdata)
{
$postCatArr = wp_get_post_categories($postdata->ID);
$post_array = array();
for($c=0;$c<count($postCatArr);$c++)
{
$category_posts=get_posts('category='.$postCatArr[$c]);
foreach($category_posts as $post)
{
if($post->ID != $postdata->ID)
{
$post_array[$post->ID] = $post;
}
}
}
if($post_array)
{
?>
<div class="realated_post clearfix">
<h3><span>Località Simili</span></h3>
<ul class="category_grid_view clearfix">
<?php
$relatedprd_count = 0;
foreach($post_array as $postval)
{
$product_id = $postval->ID;
$post_title = $postval->post_title;
$productlink = get_permalink($product_id);
$post_date = $postval->post_date;
$comment_count = $postval->comment_count;
$text = $postval->post_content;
$length = 100;
$text = strip_tags($text);
if(strlen($text)>$length)
{
$text = substr($text, 0, $length);
$text = substr($text, 0, strrpos($text, " "));
$text = $text.' ...';
}
if($postval->post_status == 'publish')
{
$post_images = bdw_get_images($postval->ID,'large');
if($post_images[0]!='')
{
$relatedprd_count++;
?>
https://www.ads-software.com/extend/plugins/custom-taxonomy-sort/
]]>Just a quick note. This is a simple plugin which does what it says and works great. Could be optimized a bit (drag and drop, auto-fill-in of the order number) but as it stands it works perfectly. Just a note I found: It does not start at 0 So if you are trying to order a bunch of taxonomies, you should start numbering at 1.
https://www.ads-software.com/extend/plugins/custom-taxonomy-sort/
]]>In our site we have a lot of taxonomy-entries and every page load increases with about 100 questions to the db with your plugin. Perhaps there are some optimizations you could extend the plugin with?
https://www.ads-software.com/extend/plugins/custom-taxonomy-sort/
]]>When I use the get_the_terms( ) function in Debug mode WordPress is throwing the following errors:
Warning: Illegal string offset ‘orderby’ in /Volumes/RAID Set/Work_10/htdocs/eva-wordpress/wp-content/plugins/custom-taxonomy-sort/custom-taxonomy-sort.php on line 329
Warning: Illegal string offset ‘orderby’ in /Volumes/RAID Set/Work_10/htdocs/eva-wordpress/wp-content/plugins/custom-taxonomy-sort/custom-taxonomy-sort.php on line 330
https://www.ads-software.com/extend/plugins/custom-taxonomy-sort/
]]>Hi there,
I have taxonomies in which the terms are created automatically by user input.
Would it be possible to assign the next higher order value to new terms automatically? This would be perfect! ??
Thank you!
https://www.ads-software.com/extend/plugins/custom-taxonomy-sort/
]]>I’ve created a custom post type portfolio page with three custom taxonomies, each representing a category within the portfolio.
Problem is, I don’t need to sort the taxonomies as much as I need to custom sort (through the admin interface) the items within each taxonomy.
Is there any way to do that? Otherwise WordPress just displays last item first, under its assigned taxonomy.
Thanks!
https://www.ads-software.com/extend/plugins/custom-taxonomy-sort/
]]>I have a plugin applying a filter on the same custom column and they are in conflict, one of the columns comes in blank.
Any advice on this situation?
Thanks,
Marc
https://www.ads-software.com/extend/plugins/custom-taxonomy-sort/
]]>Hello,
I think your plugin is awesome and I really need it for what I’m designing but for some reason I am getting a 500 error when I try to edit my post when your plugin is activated I can’t figure it out.
thanks,
Brett
https://www.ads-software.com/extend/plugins/custom-taxonomy-sort/
]]>Order is not being displayed in the backend, either in the Order column or in Edit or Quick Edit dialogues.
https://www.ads-software.com/extend/plugins/custom-taxonomy-sort/
]]>I’m a in a Custom Page and I’ve installed Custom Taxonomy Sort plugin (turning off automatic sorting). This is my query (not-sorting):
$args=array(
'tax_query' => array(
array(
'taxonomy' => 'portata',
'field' => 'slug',
'terms' => array( 'primi-piatti','secondi-piatti')
)
),
'post_type' => 'ricetta',
'post_status' => 'publish',
'posts_per_page' => -1,
'orderby' => 'custom_sort'
);
$my_query = null;
$my_query = new WP_Query( $args );
How can I make it works?
https://www.ads-software.com/extend/plugins/custom-taxonomy-sort/
]]>Very useful plugin but…
it breaks column sorting of taxonomies in the back end. ie. visit a taxonomy’s admin page and you can no longer sort the terms via the column headers. For some applications, with a high term count, this is an essential feature to have (eg. a catalogue site, where you need quick overviews of how many of this or that product type you’re currently listing), and as great as this plugin is, it would be better if it didn’t break normal WP functionality.
https://www.ads-software.com/extend/plugins/custom-taxonomy-sort/
]]>I wonder if this plugin is multisite-ready or takes into account the db table prefix a user defines since I cannot get it to work.
https://www.ads-software.com/extend/plugins/custom-taxonomy-sort/
]]>Excellent plugin – many thanks for your work on this Zack.
As best practice, I wonder if the ‘termmeta’ table that is created by the plugin should be prefixed e.g. zt_termmeta?
Also, just wondering aloud, maybe this plugin could be extended to include the ability to store a category image reference? In a theme I’m working on, I currently associate category images via an entry in the options table and echo via a call to get_option(). With your plugin already creating a new table, would be great to store all term meta data in one place and reference appropriately e.g. term_id = X, meta_key = tax_image, meta_value = smile.gif.
Anyway, just a thought. Once again however, thank you for a wonderful plugin.
Cheers
https://www.ads-software.com/extend/plugins/custom-taxonomy-sort/
]]>Wondering if you could expand your plugin to also hook to wp_list_categories ( I use this to list all my custom taxonomies ). If not, that cool. I will just rewrite my code (but thought it would be a great addition ??
Thanks!
https://www.ads-software.com/extend/plugins/custom-taxonomy-sort/
]]>Hello,
This is how I have my taxonomy setup:
register_taxonomy(
'interest-filter',
'page',
array( 'hierarchical' => true,
'labels' => $labels,
'query_var' => true,
'rewrite' => true
)
);
And I don’t see a meta box on the edit post page to set the order of the terms. I guess it would be difficult to order something that appears in multiple terms, but your plugin doesn’t mention that it is limited to non-hierarchical taxonomies. Is it?
https://www.ads-software.com/extend/plugins/custom-taxonomy-sort/
]]>I use the following to display my custom terms:
<?php echo get_the_term_list( $post->ID, 'series', ' ', ', ', '' ); ?>
Is there any way to get this function to accept the custom sort order?
I have tried a number of different options, but none seem to kick in.
thnx
https://www.ads-software.com/extend/plugins/custom-taxonomy-sort/
]]>