WPPizza – A Restaurant Plugin for WordPress › Support › General Support › One category to rule them all
- AuthorPosts
- 27 July, 2015 at 2:42 pm #11236
Hello all,
You may have noticed that, even if you got several categories, you can see only the last one in
/wp-admin/edit-tags.php?taxonomy=wppizza_menu&post_type=wppizzaThis is because of the function wppizza_do_sort_custom_posts_category in taxonomy.php
foreach($terms as $k=>$term){ if(is_object($term)){ $key=$options['layout']['category_sort'][$term->term_id]; $termArray[$key]=$term; } }
Obviously, $key is always the same (when sort option is not set)
That’s why, instead of getting all your categories, you can only see the last one.Do you agree with this investigation ?
Could you please fix it ?Rgds
27 July, 2015 at 2:51 pm #11242>You may have noticed that, even if you got several categories, you can see only the last one
no, i can see all just fine (paginated if necessary)…>in taxonomy.php
no such file exists in the plugin>Obviously, $key is always the same (when sort option is not set)
no, it is not>Do you agree with this investigation ?
no27 July, 2015 at 2:53 pm #11243Sorry,
It’s not in taxonomy.php but in wppizza.actions.inc.php (bad copy/paste)
I’ll check if my options are corrupted.
Thanks for your fast answer.
27 July, 2015 at 3:14 pm #11249you can also try:
wppizza->tools->repair categories (read the text next to that option , i suspect you are a victim of that issue)also read here
https://www.wp-pizza.com/topic/i-have-dragged-and-dropped-my-categories-but/#post-7271
and here
https://www.wp-pizza.com/topic/one-of-the-stranges-bug-i-ever-see/#post-9975if the above is the case and you can shed light on that somehow (i .e what did you do before this occurred, any plugins running that – when disabled – makes the cats show up again etc etc , i would be very interested to hear it)
27 July, 2015 at 3:59 pm #11251Well,
“Repair Categories” was the answer.
I was afraid of using it because everything else was just working fine.
And the wp_options record for wppizza seemed to be ok (the category_sort part at least)I don’t really know how I “broke” them.
We erased the default categories and created new ones (me, as an administrator, and another user, with Editor role)Anyway, i’ll keep an eye on this.
Many thanks for your support 🙂27 July, 2015 at 4:29 pm #11252>“Repair Categories” was the answer
good>And the wp_options record for wppizza seemed to be ok
yeah, that’s why i – as yet – do not know why this sometimes (albeit rarely) happens>I don’t really know how I “broke” them.
i know. i wished i could replicate this somehow myself to be able to fix it>Anyway, i’ll keep an eye on this.
please do, and if you find anything that might shed a light on this , please let me know>Many thanks for your support
you’re welcome - AuthorPosts
- The topic ‘One category to rule them all’ is closed to new replies.