Pages in subfolder not inheriting WP
I’m in R&D mode for a job posting site. I’ve created a form that only authors and above are able to access. For the sake of organization, I have created a separate PHP file to process the form and publish the job posting and placed it in a folder within my theme called ‘processes’. It doesn’t seem to recognize the wp_insert_post() function. Do pages in subfolders inherit WP classes like those in the theme’s root folder? If not, is there a way to make them?
Again, this is really just for organization and to feed my curiosity. It’s not a big deal if it’s not possible.
- The topic ‘Pages in subfolder not inheriting WP’ is closed to new replies.