WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] add post_parent to a new post (2 posts)

  1. Vicky Nguyen
    Member
    Posted 1 year ago #

    How can I add post_parent to a new post?
    For example:
    post-new.php?post_type=post&post_parent=[my-chosen-id]

    I have this question because I want to force a parent to a custom post type. And I don't want to edit the core post-new.php. Thank you in advance.

    Vicky

  2. Vicky Nguyen
    Member
    Posted 1 year ago #

    I've solved this by using $wpdb->query("my query here");

Topic Closed

This topic has been closed to new replies.

About this Topic