Create WP page in php (3 posts)

  1. wp_joost
    Posted 2 years ago #

    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?


  2. edpittol
    Posted 2 years ago #

  3. wp_joost
    Posted 2 years ago #

    Thank you edpittol!

Topic Closed

This topic has been closed to new replies.

About this Topic