Skip Navigation

[Resolved] Custom post type fields are not displaying on single archive page

This support ticket is created 4 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 2 replies, has 2 voices.

Last updated by michaelC-36 4 years ago.

Assisted by: Jamal.

Author
Posts
#1873617

Tell us what you are trying to do?
I have imported a custom post type from one site to this site along with all associated fields, settings and archive pages. When viewing the single archive page for this post type the custom fields and archive template are not displaying. However if I append the content template ID to the URL "?content-template-id=53770" the page will display correctly.

Is there any documentation that you are following?
the toolset post type import instructions

Is there a similar example that we can see?
hidden link

What is the link to your site?
hidden link
hidden link

#1873905

Hello and thank you for contacting the Toolset support.

However if I append the content template ID to the URL "?content-template-id=53770" the page will display correctly
It seems that the content template is not assigned to the posts. I can't tell what was the cause behind it, but I'll suggest going to Toolset->Content Templates, locate the content template. I would expect to have a notice telling how many posts are not assigned this content template. Click on it to assign it to the remaining posts.
Otherwise, the content template is probably not assigned. Assign it to the custom post type, and you will see a button that will automatically assign it to all the posts.

If you still encounter this issue, please allow me temporary access to your website to check this further. Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **

#1873993

My issue is resolved now. Thank you! I followed your instructions and went to toolset->Content Templates. I discovered the error was I had not applied the template to the archive page. The interface was a bit confusing. The post type was check marked on the template editing page however It was not applied to the post type. Under the "Change Usage" link for the post type there is a secondary check box under the post type that reads, Apply to existing "post type" items. This secondary check box doesn't exist on the template editing page. Once I check the secondary box the archive page displayed properly.