• wp_joost

    (@wp_joost)


    Hello fellow WP users,

    I’m making a sidebar widget which is working fine for the most part now. The widget eventuallly uses header(‘location : etc’) to open a pre-made page with a shortcode on it.

    The problem is that when i want to install the widget/plugin on another WP theme i need to make that page manually again.

    Is there a WP function to make a page? if not does someone have a SQL-query laying around that does this?

    wp_joost

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Create WP page in php’ is closed to new replies.