WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Pages in subfolder not inheriting WP (1 post)

  1. jooniya
    Member
    Posted 5 years ago #

    Greetings,

    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.

    Thanks all.

Topic Closed

This topic has been closed to new replies.

About this Topic