Support

Account

Forum Replies Created

  • Thanks for all of the great direction guys! Wanted to add this here as well for anyone who wants to do this based on the page template. Still working on it, but this seems to be doing what we need for the moment:

    
    add_filter('acf/prepare_field/name=YOUR_ACF_FIELD_NAME', function($field) {
        
    global $post;
      
        $template = get_page_template_slug( $post->ID );
        $layouts = $field['layouts'];
        $field['layouts'] = array();
    
        if( $template == 'your-template-file.php' ) {
    
          foreach ($layouts as $layout) {
            if ($layout['name'] != 'specific_layout_1' && $layout['name'] != 'specific_layout_2') {
              $field['layouts'][] = $layout;
            }
          }
    
          return $field;
          
        } else {
    
          foreach ($layouts as $layout) {
              $field['layouts'][] = $layout;
          }
    
          return $field;
    
        }
    
    });
    
  • I’m not sure what your solution is suggesting, this wasn’t an issue with a page or a template, it was happening on the whole site.

    The editor was not working on any page/post etc. but it was only isolated to one WP user account.

    I was ultimately forced to create the client a new user account and delete the old one.

  • That’s an interesting concept…I will try it out and see how it works.

  • I’d rather stick to something more native to WordPress, so the second route would be better…but I’m not sure what you mean by:

    just query the part of the gallery you need on each page.

    I do work with PHP, but I’m not sure how to get pagination to work on images.

  • That’s what I figured. Thanks for the response…you’re always so prompt!

  • Thank you! You are always so fast with this stuff. I don’t see an update available in the admin though.

  • Is this something you’re looking at adding? A “stop” to the tabs…it would be a really great addition!

  • I have this issue as well. I have actually come across it before and was able to correct it by adding this to my functions.php:

    remove_filter( ‘the_content’, ‘wpautop’ );
    add_filter( ‘the_content’, ‘wpautop’ , 12);

    I’m currently moving all of my data over to ACF and these lines of code don’t correct the issue. Ideas?

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