Home Forums ACF PRO Tiny MCE / ACF Pro Bug


Tiny MCE / ACF Pro Bug

    • User10

    • July 15, 2014 at 8:54 am

    I believe I have found a bug in ACF5.

    When running ACF Pro inside your theme rather than as a plugin, the Tiny MCE script doesn’t seem to abide by any path filtering when it is included in the page. For example, if I set this in functions.php:

    add_filter('acf/settings/dir', function( $dir ) {
        return '/wp-content/themes/ThemeName/advanced-custom-fields/';

    and then try to load a WYSIWYG field through ACF on a WP admin page it 404s looking for plugin.min.js

    I believe this only happens when WP is installed in a subdirectory. On post.php WordPress is looking for this file when it should be looking for which is obviously causing major issues. Any help in getting this resolved or getting around it would be much appreciated.

    • Elliot

    • July 15, 2014 at 10:30 am

    Hi @bradwiatr

    Your ‘dir’ url will need to include the sub directory. You can also make use of the site_url function like so:

    return site_url('wp-content/themes/ThemeName/advanced-custom-fields');

    Hope that helps


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.