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

  1. okay456okay
    Posted 2 years 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:
    Publish a post
    do something on post content and Publish a page Corresponding to the post

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

  2. okay456okay
    Posted 2 years 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