WordPress.org

Ready to get started?Download WordPress

Forums

Posts are saved but uneditable. Using wp_insert_post() for custom post type. (2 posts)

  1. dabito
    Member
    Posted 2 years ago #

    Hi everyone.

    I've been struggling to save a custom post type from the front end and today I finally managed to get it working. However, every custom post that is saved can't be edited, no matter what user id i use for the post_author.

    Whenever I save custom posts from backend, they work fine, but if I use the form I created for the frontend, they appear on the post list, but they are not linked to the edit screen.

    Here's my custom post type function:

    [Code moderated as per the Forum Rules. Please use the pastebin]

  2. dhechler
    Member
    Posted 2 years ago #

    I have the same problem! Any solution out there yet?

Topic Closed

This topic has been closed to new replies.

About this Topic