Viewing 3 reply threads
  • Author
    Posts
    • #7696
      bubdev
      Member

      Hi,

      I renamed some files in the piklist ‘meta-boxes’-folder and ran into the following issues:

      I had a file called ‘bub_title-basicdata.php’. I renamed it to ‘cpt-title-basicdata.php’. Well, that didn’t work out as expected: I had just created duplicates of my meta boxes. So I recreated the old file, then first deleted the code for the boxes inside it, leaving the comment block, saved it and then deleted the file.

      Okay, the fields were gone, but of course the empty boxes container was still there. So I again recreated the file and tried to save it with only the opening ‘<php’ inside it. But nothing changed.

      After some more playing around, I’m now left with four empty containers (see screenshot). Two with their original German title (‘Standardfelder’) and two mysteriously titled after the original file name with ‘theme_’ and ‘theme_theme_’ prepended, so one of them is called: ‘theme_theme_bub_title_basicdata’.

      Im wondering how I can get rid of them and what the required process for deleting/renaming field files is.

      Thanks!
      Stefan

      Attachments:
      You must be logged in to view attached files.
    • #7699
      bubdev
      Member

      I tried again to recreate and redelete the files, but that made it much worse (see screenshot). It’s odd, because I know I’ve done the same thing in the past without any issues.

      Attachments:
      You must be logged in to view attached files.
    • #7701
      bubdev
      Member

      Now I also noticed, that the empty meta box containers are appearing on all post types, not only the ones they originally had been set for.

    • #7702
      bubdev
      Member

      Sorry for talking to myself, but I found out how to solve this.

      1.) Renamed the piklist folder in my theme and created a fresh one.
      2.) Reloaded the site in the browser.
      3.) Deleted the empty piklist folder and changed the name of the original one back to ‘piklist’.
      4.) Reloaded the site in the brwoser. Now the empty containers are gone.

      Is there a way to avoid this in the future?

      Best
      Stefan

Viewing 3 reply threads
  • You must be logged in to reply to this topic.