set CPT titles

Posted in: Newspaper
Post count: 89

Hi, I used a CPT ‘vendors’ to allow my users to creat a listing on the frontend. However, in the WP dashboard, all the CPT vendors they created appeared as ‘no title’. How do I automatically set the CPT titles with one of ACF fields that the users provided?

Post count: 27744

Hi,

Please make sure that you have selected the right acf there.
Also, please provide more details with screenshots.

Thank you!

Post count: 89

of course I selected the right ACF. My question was how to set post title with the ACF(vendor’s name) as. As you can see here, my listing detail page has vendor’s name; however, it shows ‘no title’ in breadscrumb. https://snipboard.io/xFiSXM.jpg

If I go back to WP dashboard, the post’s title is ‘no title’. https://snipboard.io/ef5TSY.jpg

If I run a search, it shows ‘no title’ too.https://snipboard.io/RmcbX2.jpg

It’s obvious these two places show only the post title, so I want to set the post title with the ACF(vendor’s name) whenever the user submits a new listing.

I hope this is clear.

Post count: 27744

Hi,

Please provide a link where you have this option to submit.

Thank you!

Post count: 89

This is the page where a user can submit a new listing. https://weliveinus.com/listing-details/ It has one ACF to get the vendor’s name. I want to set this ACF as the title of the post but don’t know how.https://snipboard.io/AcZ9VP.jpg The ACF is tdcf_vendor_title https://snipboard.io/x6Fyh1.jpg

Post count: 27744

Hi,

Please do a test using only tagDiv plugins and acf plugin and check after,
I did some tests and works for me.

Thank you!

Post count: 89

what did you test exactly? My question was how to set the title with ACF. Did you mean the title was automatically set in your test? I’m confused.

Post count: 21065

Hello @zhangleji !

I understand your issue and you can achieve what you need.
Add your ACF vendor variable here: https://prnt.sc/mIsA6XTy5Uz1 and the title will be added automatically from the vendor name field.

Thank you!

Post count: 89

yes it worked! Thank you! Such an easy way to do it!

Post count: 89

one follow up question: can the user submit multiple images when creating a listing? With ‘form file upload’element I can only upload one image file.

Post count: 27744

Hi,

You need to add more times the form file upload https://i.imgur.com/toDIeXT.png

Thank you!

Post count: 89

got it. Should I set different ACF for each image so that I can display them?

Post count: 89

also, when I display multiple images in the listing detail page(each image is uploaded via Form File Upload with one ACF field), can I use something like image box to make it more organized? If yes, how to set the ACF field in the image box? I didn’t see any place to set it.

Post count: 27744

Hi,

You need to have for each image a new custom field -> https://i.imgur.com/G2fbwtY.png -> https://i.imgur.com/F6Tr4eY.png
In the version 12.4 will be added a new option Galerry to add images to Cpt.

Thank you!

Viewing 14 posts - 1 through 14 (of 14 total)
The forum ‘Newspaper’ is closed to new topics and replies.