ACF “hidden” metabox options overridden

#32671
  • Resolved Dawn Hickerson
    Rank Math free

    I have several page templates that don’t use the default content editor field but relies instead on custom fields (ACF) for all content on the pages that use those templates. I have the Rank Math set to analyze the custom fields and on the custom field group/set, I have the Content Editor set to be hidden. When Rank Math is installed and activated, however, that editor remains visible.

    In testing, I determined that if Rank Math is off, the ACF setting (hide default content editor) is followed. If Rank Math is activated, the setting is ignored.

    Do you have suggestions how how to make sure that isn’t ignored? I would prefer not to have a random editor just floating around on the admin page, confusing clients.

    • This topic was modified 4 years, 8 months ago by Dawn Hickerson. Reason: Adding link to screenshot
Viewing 11 replies - 1 through 11 (of 11 total)
  • Todd
    Rank Math free

    Hi Dawn,

    Thanks for getting in touch with us.

    We are not sure we understand.

    Is there any chance you can create a video using loom.com?

    If not, please give us the steps we must take to replicate the issue from our end. We are not sure how you are hiding the content editor area so we need instructions.

    We look forward to your reply.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    I’ve added a screenshot to the sensitive data for you. Here’s my setup:

    – WordPress (latest version)
    – Advanced Custom Fields Pro (5.8.7)
    – Rank Math (latest version)
    – Using the classic editor, NOT Gutenberg.

    I have a custom field group created and under the “hide on screen” options, I have checked to hide the “Content Editor”. This hides the default WordPress content editor on any page that field group is applied to (see screenshot linked in Sensitive Data). The options to “hide on screen” are at the bottom of the field group settings.

    My current situation:

    I have created a custom field group to apply to pages that use a specific page template. All content for these pages is handled through the custom fields, so I don’t need the default editor to show (so clients won’t be confused) and have selected the option to hide it.

    This has worked great for me just fine until I installed Rank Math, which appears to override that setting. On the pages using that custom field group, the default editor is now showing whenever I edit one of those pages.

    To reproduce:

    1) Set up a ACF custom field group
    2) Choose to hide the Content Editor in that group’s settings
    3) Assign the group to a specific page or post
    4) Save
    5) Edit the page or post you assigned the group to.

    You should see both the custom fields group AND the default content editor, the latter of which should be hidden based on the setting.

    Hi Dawn,

    Thank you for the additional info.

    I have just tested this problem but I cannot reproduce it as shown below:
    Screenshot

    Please note that the ACF hide on screen options respect the settings of the field group with the lowest Order no. You will therefore need to ensure that you lower the order number of the field group that you referenced on the screenshot to 0 on the group settings for this to work as expected.

    I hope this info helps. Thank you.

    Hmmm. It seems to be inconsistent in how it’s interpreting that. I changed it on two pages, for two different groups moving, setting the priority to highest, below the title, and also set the order manually to 0. It worked on a couple but not on another.

    What is the order no for Rank Math?

    Ah, I figured it out! I had a single field that was reading as priority “0”. I changed that and it sorted it out.

    Still, I’d love to know the priority order number for Rank Math.

    Hello,

    By default Rank Math metabox priority is set to high. You can change it by using the following filter: https://rankmath.com/kb/filters-hooks-api-developer/

    I hope that helps.

    Dawn
    Rank Math free

    Thank you!

    Can you tell me which filter/hook I should look for?

    Todd
    Rank Math free

    Hi Dawn,

    Here you go:
    https://rankmath.com/kb/filters-hooks-api-developer/#change-metabox-priority

    /**
     * Change the Rank Math Metabox Priority
     *
     * @param array $priority Metabox Priority.
     */
    add_filter( 'rank_math/metabox/priority', function( $priority ) {
     return 'low';
    });

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Dawn
    Rank Math free

    Great! Thank you!

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 11 replies - 1 through 11 (of 11 total)

The ticket ‘ACF “hidden” metabox options overridden’ is closed to new replies.