Skip Navigation

[Escalated to 2nd Tier] Custom Fields showing for 'Posts' Type should only be 'Salary Schedule' type

This support ticket is created 5 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Tagged: 

This topic contains 6 replies, has 3 voices.

Last updated by Nigel 5 years, 11 months ago.

Assisted by: Nigel.

Author
Posts
#1211572

In 3.2.4 the 'add new post' screen looks like this.

- hidden link

In 3.2.7 the 'add new post' screen looks like below. The 'Salary Schedule V', and 'Salary Data' fields should no be showing for the 'Posts'.

- hidden link

I see a bunch of existing recent issues related to Custom Fields, I am not sure if this is a duplicate of an existing issue, or just another related bug.

More debug info/screenshots [hidden link;

- Broken, Current New Posts page (3.2.7)
- hidden link
- Working New Posts page from a staging instance before upgrade
- hidden link
- Plugin List
- hidden link
- Add New Salary Schedule (where the fields **actually** belong)
- hidden link
- 'Salary Schedule V' Group
- hidden link
- 'Salary Data' Group
- hidden link
- Custom fields group
- hidden link

#1211582

Hi, in the data-dependent display area I see additional conditions related to the custom field "Schedule". Is this one of the fields in the inactive "Post fields" group?
If so, reactivate the field group and let me know if the problem is resolved.
If not, can you tell me anything more about the Schedule field conditions?

#1212000
Screen Shot 2019-03-08 at 11.46.26 AM.png

Hi, the only data-dependent conditions are within the schedule post types:

Post Type(s): Salary Schedules

Additional condition(s):
Schedule = schedule-1,
Schedule = schedule-2,
Schedule = schedule-3,
Schedule = schedule-6

None of these schedule fields are set to display on the "Post" post type as indicated here: hidden link

These fields were never activated in a post fields group. This was a legacy group created from our data import from drupal. I deactivated it because it wasn't necessary. I've attached an image of those fields.

For good measure, I activated this field group and the salary schedule fields are still showing up when creating a new post.

Please advise on how to resolve this issue.

#1212651

Okay thanks for the additional information. I'll have to take a closer look. I may need to create a site clone so I can perform some additional tests locally without affecting the live site. If that is required, I will install the Duplicator plugin to create that site clone. If that's okay with you, please provide login credentials in the private reply fields here.

#1213273

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2019-03-12 at 14.56.50.png

Hi there

Christian is sick, let me jump in here.

I looked at your site and reviewed the display conditions.

For both Field Groups that were showing unexpectedly on the post edit screens you were displaying the field groups with an ANY rule, when logically it seems to me you should be using "when ALL conditions are met".

Your "Additional conditions" are joined by OR, so after changing to an ALL condition (screenshot) then in words the condition becomes show the field group when the post type is "Salary Schedules" AND the schedule field value is any one of 1, 2, 3 or 6.

I *think* that is your intention, and after making the change the field stops showing on the post edit screens.

Now, it seems like your condition should still have worked, because Posts do not have schedule fields, so I still need to investigate further.

I'm going to test this on my own local site to see if I can reproduce, but if not I'll go ahead and take a copy of your site.

In the meantime you might verify that the changes to the condition I made conform with your intentions.

#1213317

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I was unable to reproduce on my local site (I seemed to have the opposite but still erroneous experience) so I've taken a copy of your site and will be double-checking when installed locally before escalating.

I'll keep you posted.

#1213661

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I've reported this so that it can be debugged further by my colleagues.

It seems to require Avada. If I disable the Fusion plugins and switch theme then I no longer see the field group wrongly displayed on standard Posts.

I'll keep you posted.