WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Eleven
[resolved] how to autogenerate page according to a post ? (2 posts)

  1. okay456okay
    Member
    Posted 1 year ago #

    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

  2. okay456okay
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic