WordPress.org

Ready to get started?Download WordPress

Forums

Custom post title in custom post type (2 posts)

  1. Rakesh Raja
    Member
    Posted 2 years ago #

    Hi

    I have custom post type "Dealer" and I have disable everything in write panel including post title. I have meta box for post title. but as I dont have post title enabled, when I publish post it always save post as "draft" I need to know how to take my meta box as post title,

    by searching support forums I found that I can achieve this by adding "post_title" filter, but I don't know how to do that.

    I have setup meta in separate file here is the code

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

    You can check reference for similar type solution here

    http://wordpress.org/support/topic/generating-and-setting-a-custom-post-title

  2. Rakesh Raja
    Member
    Posted 2 years ago #

    Hi

    I have custom post type "Dealer" and I have disable everything in write panel including post title. I have meta box for post title. but as I dont have post title enabled, when I publish post it always save post as "draft" I need to know how to take my meta box as post title,

    by searching support forums I found that I can achieve this by adding "post_title" filter, but I don't know how to do that.

    I have setup meta in separate file here is the code

    http://pastebin.com/SednWNyt

    Here is the form code for write panel

    http://pastebin.com/eiwm3RJg

    You can check reference for similar type solution here

    http://wordpress.org/support/topic/generating-and-setting-a-custom-post-title

Topic Closed

This topic has been closed to new replies.

About this Topic