I am trying to use Elegant Theme’s “Envisioned” theme as a parent theme for a client’s site with Posts 2 Posts. I have a starter theme that I usually use as the basis for projects (a code base of sorts). When I learned of the Posts 2 Posts plugin, I tried it in my starter theme and everything worked as expected, so I intended to use it for this project. The P2P plugin, when used with the Envisioned theme works normally. When I try to use it with my child theme, the plugins page (only) displays the white screen of death (other admin pages are fine). The culprit appeared to be in the functions file of the child theme, so I commented out all functions and reintroduced them one by one. I was able to narrow it down to the function that I use to display subpages and my employee custom post type (require_once). What’s strange is that these lines of code are identical to my starter theme’s function file. Even stranger, I moved two functions below the subpages function within the child theme’s functions file to make it exactly the same as the starter theme. Then I followed a similar comment/uncomment testing scenario and found that I was able to get it to work with subpage function uncommented but with the require_once for the employee post type and the require_once for the file that creates a “global info” (tagline, phone #, etc) options page in the admin commented out. I was able to keep the options page require_once uncommented before. This leads me to believe that it’s not the exact code that’s creating the issue. Unfortunately, it also leaves me not having a clue of what the problem is. I am writing Elegant themes too, but I was hoping that someone might have some insight into this issue. Thanks.
- The topic ‘[Plugin: Posts 2 Posts] Strange behavior with Post 2 Post’ is closed to new replies.