You need to include the post type in the pre_get_post filter:
(Not sure about global $user_ID;, just reproduce that part of your code)
function content_for_current_author($query) {
if($query->is_admin) {
global $user_ID;
$query->set('author', $user_ID);
$query->set( 'post_type', array('acf', 'another-custom-pot', 'page', 'post') );
}
return $query;
}
add_filter('pre_get_posts', 'content_for_current_author');
Details in WP Query documentation for Type Parameter
Also, your custom post type dosn’t support custom fields, maybe that is hte reason of meta boxes don’t showing. Not sure here because I don’t know how ACF works. Try to add support for custom fileds to your post type; change the support argument to:
supports' => array(
'title',
'custom-fields'
),
Related Posts:
- Combine CSS and JS files from plugins
- Do I require the use of nonce?
- Removing jQuery migrate and working with dependencies
- Security – Ajax and Nonce use [closed]
- How to use WordPress (PHP) functions in AngularJS partials files?
- Nice scroll to wordpress
- Remove commas from WooCommerce checkout addresses fields
- Problem with WordPress Ajax form
- How to display something in a div when the user clicks on a text in another div – no page refresh [closed]
- Check if user is logged in when clicking certain links on certain pages
- Asking popup for delete post in WordPress [closed]
- Use ajax from function.php
- Show post in slider
- How to test nonce with AJAX – Plugin development
- Slider loading issue
- Conditional Header in wordpress
- How to select the contents in the text view textrea in wp_editor?
- Proper syntax or method for keeping url in modified isotope / category links
- Ajax loaded form replaces form action with Ajax url
- prevent default not stopping page refresh. Passing form information to and from php with ajax in a wordpress site
- Ajax date_query not working past the first iteration
- Why ajax doesn’t work on certain wordpress hooks and reload the page instead?
- Limit Widgets to Sidebar ID’s
- How can I get the values of my WordPress $wpdb query in Jquery?
- How to add a do_action on refreshing of WP customizer?
- WordPress Multiple Navigation bars
- [jQuery]Adding shortcode
- Display parent and child taxonomies in separate drop down select fields
- Add / Update Custom Fields After Select Pictures in Media Window
- Can I use a jQuery Ajax request in Code Snippets Plugin for WordPress?
- Pull GetOption() variable into jQuery dynamically created html
- Royalty-Free Sliders used in theme development
- Error – ‘create_function is deprecated’ [closed]
- Is it save to use eval for a jQuery callback method coming from the database?
- Double jQuery loaded
- Trying to prepend a Hashtag symbol to the_tags links [closed]
- Javascript not loading on certain page
- WordPress plugin admin page – using WordPress function in linked php file
- A $_POST should occur when submit form but is not?
- Ajax search shows all results when user empties input?
- Why i can’t get custom fields value or post ID via Ajax?
- Get uploaded image and attach it to the new post
- Admin-ajax php not working on new wordpress version
- How to add post thumbnail dynamically using Jquery?
- Proper way to use WordPress function with AJAX PHP file
- calling function in external js file
- Live search from database table
- How to refresh a page from jquery [closed]
- Add a counter for mouseovers (custom field)
- Accessing an API with jQuery and AJAX
- Unexpected token ILLEGAL, even on clean install – jquery-issue?
- Wrap posts p tags in div
- Admin Menu new tab external link
- Replacing WordPress Icons (menu,icons32, etc)?
- How to set variables with AJAX request to use in another function in WordPress
- Search Ajax Call – Use Form Data in Response
- Why does PHP called with Jquery AJAX not allow additional php code to be added?
- Database entry removed on browser refresh, Ajax PHP jQuery
- Display custom field value in woocommerce variable product via jQurey
- Remove Author Links
- Add other class content with reference class value
- Ajax result show in console if is called outside function and not showing in array
- WordPress – Query specific category and automatically change category each month
- How to change PHP variables with AJAX request in WordPress
- How to pass bloginfo(url) in a jquery
- Can’t make lazy load for my site, help!
- wp_ajax_ 400 Bad Request
- Change CSS Variable value in Theme Customizer Live Preview
- update_post_meta Not Processing Array Data (Not Sure What I Am Missing)
- JQuery modal not loading video on popup, only displaying it after multiple reopenings
- How to call a function from functions.php with ajax?
- Custom theme admin-ajax.php 400 (Bad Request)
- include javascript Multiple files in wordpress through script.js
- number of posts with “Load More”
- Find the method which AJAX GET calls
- Calling header from JavaScript file
- Using Custom Javascript and pHp to send email to myself when a user clicks on an input button but only works on Chrome, IE, and Micorosft Edge
- Slider from different widgets
- Querying posts based off a jquery datepicker
- How to call javascript function (jquery) in a shortcode?
- ajax form with multiple submit buttons and values
- Adding unique marketing messages between certain products whilst using isotope/Infinite Scroll
- Pass php to database in JQuery: With AJAX?
- Add php function into .js file (for tinyMCE button)
- Why this plugin is not working?
- Trying to fix multiple category drop down
- Adding javascript files to WordPress and jQuery version
- I am trying to call external database recieving error
- reorder a WP_Query, using a dropdown
- Edit Image/Image Details – Replace button missing
- ajax form function error
- ACF repeater image in video poster with jquery
- JSON Object Value Show Undefine
- ajax problems on loading page [closed]
- generate excerpt from the part of big text dump that contains keyword
- Help with AJAX request
- Retrive the value of the Active variation of the product and then link it to the “read more” to dynamically change
- custom AJAX filtering logic and outputting results into an Elementor Loop Grid widget
- JQuery UI Autocomplete showing as bullets
- Partial refresh in WordPress live preview