Set post title automatic by value of dropdown list of selections of posts

Support MB Builder Set post title automatic by value of dropdown list of selections of postsResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14966
    designerabreu@gmail.com[email protected]
    Participant

    Hello, any way to set the title of the post a value of a posts selection box?

    I have a custom post with a field with post selections from another post type.

    Example:
    A Post_type called "BASE" with some defined posts: TITLE A, TITLE B, TITLE C, TITLE D ...

    The other type of post called "SUPER" contains a box of selection of posts with the posts of "BASE" posts.

    The idea is that the new post has the same title of selection post.

    In the "SUPER" post, selecting "TITLE A", when saving the post, set the title of the post with "TITLE A". Slug does not matter that it is sequential, because there will be many posts with the same post_title.

    Thank you for your help

    #15017
    Anh TranAnh Tran
    Keymaster

    I'm afraid the value stored for the post field is always post ID. I suppose you're trying to set title with a custom code. I'd suggest you add a little code to retrieve the post title from the post ID and then use that title later in your code.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.