Open maxpowdersky opened 7 years ago
It has to do with the if statement you have. Try using get_page_template()
to get the right template file name. Also the file name you are looking for might not be in the right place on the non-local site.
Sorry for late reply, just got round to looking at this again as put in temporary fix (hard code content on page). It is all in the right location just one day it stopped working on the main site which is very odd. Even copying the main site over to the local it still seems to work so makes me think might have something to do with the PHP settings?
Hi,
I have noticed that the meta boxes are now not displaying frontend or in the page edit screen. I have been declaring the meta boxes using admin_init which after doing some research it is now better to use rwmb_meta_boxes(filter) however I have changed this and the issue still remains. What else is strange is that some of the other meta boxes in the theme do actually work baring a couple.
However:
Thanks in advance for your help.
Code for registering meta boxes (one of them that has issue):