Skip Navigation

[Resolved] New post fields don't display a value

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

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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: Asia/Kolkata (GMT+05:30)

This topic contains 8 replies, has 2 voices.

Last updated by Barney Chastain 3 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#1872425
Screenshot from 2020-12-10 15-27-27.png
Screenshot from 2020-12-10 15-28-50.png

Tell us what you are trying to do?

Summary: I've added new fields to a custom post type, but the populated fields do not display in a View

I created two new fields in my custom post type: location and storyboard. Then I exported the database, moved data around, and uploaded it again into WordPress. I can confirm that the data is there, because I can see it here: | WP admin panel > Moulding (custom post type) > Edit .

Here is a link to Moulding #2524, which should display the data that is actually in the database for "location" and "storyboard":
hidden link

Is there any documentation that you are following? No.

Attached are images showing that the data is in the fields, the fields are in the post field group, that the field don't display on search, and that the field were added to the post type Template.

#1872773

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

That is really strange. I will require access details to further look at your issue and that will allow me to identify whats going on with your site.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1876563

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Thank you for sharing access details. I tried to access the wp-admin access details but I see only white page instead of login page and see the following errors:

Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

Fatal error: Unknown: Failed opening required '/home/chastain/public_html/wordfence-waf.php' (include_path='.:/opt/alt/php73/usr/share/pear') in Unknown on line 0

Can you please fix that and will check further once you fix this issue.

#1877623

Hello, Please try again.

#1877923

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

When I checked the view you created:
=> hidden link

I can see within the view's loop you added the content template "Template for Wood Molding" and that template only have few custom fields added. Please check the following screenshot:
=> hidden link

I suggest you should create a brand new content template and add your desired fields to that and then add that newly created content template within your view's loop body and see if that help you to resolve your issue.

#1878311

My apologies. I'd added those extra fields before I created this ticket, but had to recreate the site after my first support ticket. Now I've added those fields into the template, as I did originally, but the data doesn't show on this product that has those field populated.

Link: hidden link

1. Does Toolset require the template to be deleted each time new fields are added?

2. How do I go about adding a new content template? When I go through my Toolset Dashboard, there's no option for creating a second template for the Moulding post type. Do I have to destroy the previous template to create a new one? Do I have to recreate the moulding post type?

#1878901

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

1. Does Toolset require the template to be deleted each time new fields are added?
==>
No

2. How do I go about adding a new content template? When I go through my Toolset Dashboard, there's no option for creating a second template for the Moulding post type. Do I have to destroy the previous template to create a new one? Do I have to recreate the moulding post type?
==>
You can create a new content template from here:
- hidden link

Do I have to destroy the previous template to create a new one? Do I have to recreate the moulding post type?
==>
No

I suggest you should try to create a brand new view and add the fields. Please check the following video:
- https://toolset.com/course-lesson/creating-a-custom-search/

#1879623

Solution found. Naming convention changed with new fields for custom post type.

Old field that works

 <p>[types field='moulding-details']</p>

New field that didn't display

 <p>[types field='moulding-template']</p>

New field that displays correctly

 <p>[types field='template']</p>
#1879625

My issue is resolved now. Thank you!