• Resolved okay456okay

    (@okay456okay)


    I want to implement a function like this:
    When I publish a post, the function will auto publish an page according to the post ( obey some rules ), how to make this Automation ?
    Now I have to create an page after publishing a post . Just Like:
    Now:
    Publish a post
    do something on post content and Publish a page Corresponding to the post

    Target:
    Publish a post and publish the corresponding page at the same time

Viewing 1 replies (of 1 total)
  • Thread Starter okay456okay

    (@okay456okay)

    Ok , no one reples.
    I resolve it by myself.
    Just use wp_insert_post function and publish_post action to finish it.

Viewing 1 replies (of 1 total)
  • The topic ‘how to autogenerate page according to a post ?’ is closed to new replies.