Navigation überspringen

[Eskaliert zur 2. Ebene] Custom Fields showing for 'Posts' Type should only be 'Salary Schedule' type

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

Zeitzone des Unterstützers: Europe/London (GMT+01:00)

Dieses Thema enthält 6 Antworten, hat 3 Stimmen.

Zuletzt aktualisiert von Nigel vor 7 years, 2 months.

Assistiert von: Nigel.

Author
Artikel
#1211572

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

- versteckter 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'.

- versteckter 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 [versteckter Link;

- Broken, Current New Posts page (3.2.7)
- versteckter Link
- Working New Posts page from a staging instance before upgrade
- versteckter Link
- Plugin List
- versteckter Link
- Add New Salary Schedule (where the fields **actually** belong)
- versteckter Link
- 'Salary Schedule V' Group
- versteckter Link
- 'Salary Data' Group
- versteckter Link
- Custom fields group
- versteckter 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: versteckter 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
Unterstützer

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+01: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
Unterstützer

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+01: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
Unterstützer

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+01: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.