Can I dynamically create the post title?

This topic contains 3 replies, has 3 voices, and was last updated by  Paolo 4 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #495890

    Terri Tutich
    Expired Member
    Post count: 18

    I have a CPT for people. Ideally the post title would be their name, but I also want to be able to sort people by last name. I have added custom fields for First Name and Last Name, but then the post name is only created from the last name. Is there a way I can specify that the post title is made up of the First Name and the Last Name fields?

    #495894

    Kor
    Moderator
    Post count: 16516

    Hi Terri Tutich,

    Thanks for your post. You can manually display “Custom Fields” on your “Details Page Template” using the “Post Meta” Shortcode/Widget. Could you give it a try and see if helps?

    #495899

    Terri Tutich
    Expired Member
    Post count: 18

    It’s not a matter of displaying the First Name and Last Name – I know how to do that part. The Post Title, which becomes part of the permalink, isn’t working out the way I need it to.

    #495930

    Paolo
    Site Admin
    Post count: 31206

    Hi Terri,

    the Post Title is what the user enters in the title field. The plugin only takes the information, it doesn’t do anything else with it.

    There could be 2 solutions:

    hide the title field with CSS and use jQuery to fetch whatever users are entering in the First and Last name fields. (this is customization)

    Or you give instructions to your users to enter the title a certain way.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket