Skip Navigation

[Resolved] Custom field group won’t display in a specific custom post type

This thread is resolved. Here is a description of the problem and solution.

Problem: I have created a custom field group and applied it to a custom post type. After migrating my site to a new host, when I edit those custom posts in wp-admin I cannot see the field group. If I open the Screen Options tab, the field group does not appear in the list of available field groups for display.

Solution: This appears to be a server-side caching issue. Resave the field group(s) in Types > Custom Fields > Post fields, flush the object cache using the 3rd-party object cache system controls, and the field group should appear as expected when editing these posts.

0% of people find this useful.

This support ticket is created 3 years, 9 months 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 6 replies, has 2 voices.

Last updated by keithW 3 years, 9 months ago.

Assisted by: Christian Cox.

Author
Posts
#1935653

Tell us what you are trying to do?

We are duplicated a current site and changing some functionality for the new site. We duplicated a custom post type and then tried to add a custom field group to the new CPT but it wouldn't show up. We then tried to create a new custom field group with the same fields as the original group and added that to the new CPT but it still wouldn't show up. We tested further by adding the custom field group to a different CPT and it shows up there fine. We further tested by selecting a different custom field group altogether and having it display in the new CPT and that shows up fine too. Any idea why we can't get this custom field group to display in our new CPT?

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

#1936917
screen-options.png
options-menu.png

Hi, do you use the Classic Editor or the Block Editor to edit this CPT?

If you use the Classic Editor, please verify that the custom field group is turned "on" in Screen Options (see screen-options.png). Please open the Screen Options tab in the post editor screen and confirm that the field group is shown in the list and turned on.

If you use the Block Editor to edit this CPT, click the "Options" menu in the top right corner. It looks like 3 vertical dots (see options-menu.png). Then click "Preferences" to open the Preferences menu and scroll down to the Additional Panels configurations editor. Confirm that the custom field group is included in the list, and turn it on if necessary.

If the custom field group cannot be found in either of these lists, something else is going on. Confirm the field group is active in Toolset > Custom Fields > Post Fields tab. Then try editing the field group and resaving it. Sometimes this will correct a temporary problem in the database. Once you have resaved the field group, try the steps above again to see if it appears in the list of panels to display in the CPT editor screen.

If none of these steps seem to solve the problem, I may need to take a closer look.

#1936947

Thanks for the reply. We use the classic editor but unforuntately the custom field group isn't an option in the Screen Options. I'm likely missing something very minor but if you could take a look, that would be great. What more info can I provide to you to help troubleshoot?

#1937063

I can take a closer look if you provide login credentials in the private reply fields here. Which custom field group is missing, and from which post type?

#1937139
Screen Shot 2021-02-07 at 4.16.18 PM.png
Screen Shot 2021-02-07 at 4.13.41 PM.png

I think it's a caching issue of some kind, because I can see the Vaccine Details fields now in a Vaccine post. First, I resaved the Vaccines Details field group here:
hidden link

Then I created a draft Vaccines post here, because I did not see any Vaccine posts created yet:
hidden link

Next I flushed the Nexcess object cache using the top menu bar (screenshot here), and now when I edit the draft Vaccine post, the custom fields appear as expected (screenshot here).

So I suspect there was an object caching issue, and clearing that cache resolved the problem. Can you take a look and see if things are behaving more like you'd expect now?

#1938197

Thank you so much! I figured it was something minor that I was overlooking/not thinking of. Everything looks to be working correctly now.

#1938201

My issue is resolved now. Thank you!