One category to rule them all

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #11236
    mistral13
    Participant

      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=wppizza

      This 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

      #11242
      Olly
      Admin & Mod

        >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 ?
        no

        #11243
        mistral13
        Participant

          Sorry,

          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.

          #11249
          Olly
          Admin & Mod

            you 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-9975

            if 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)

            #11251
            mistral13
            Participant

              Well,

              “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 🙂

              #11252
              Olly
              Admin & Mod

                >“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

              Viewing 6 posts - 1 through 6 (of 6 total)
              • The topic ‘One category to rule them all’ is closed to new replies.