Custom posts of one type have disappeared from admin. Still appear on site [closed]

Solved! For some reason I had changed the name of my custom post type slightly, in my register_custom_post_types.php file register_post_type(‘programmes’, array( I changed the name back and they reappeared… I’ve learnt to keep in mind how changes to things can affect WP’s ability to retrieve data Edit: On further investigation it appears that the custom … Read more

Filter Pages by Custom Field (ACF) in admin area

Try to use this code and modify the custom post name and meta key of acf and it will work. add_action( ‘restrict_manage_posts’, ‘wpse45436_admin_posts_filter_restrict_manage_posts’ ); /** * First create the dropdown /** Create the filter dropdown */ function wpse45436_admin_posts_filter_restrict_manage_posts(){ $type=”movies”; // change to custom post name. if (isset($_GET[‘movies’])) { $type = $_GET[‘movies’]; } //only add filter … Read more

Why is WordPress enqueuing admin relevant scripts (e.g., React, ReactDOM, Redux, hooks, TinyMCE etc) when not logged in?

If your bootstrap or other enqueued scripts have a dependency or name conflict, this could enqueue all these scripts. There are a large number of common scripts in WordPress core that are enqueued under common names. I always recommend prefixing your script names with something specific. wp_enqueue_script( ‘theme-bootstrap’, ‘https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js’, array( ‘jquery’ ), ‘4.3.1’, true );

Unable to properly login

The URL in the wp-options table (in two places) needs to include the protocol – the ‘http://’ or the ‘https://’ part. That’s why, I believe, you are getting the double ‘dev.site’ in your URLs. That’s the first think I would check.

Add styles to wordpress admin on the Page List

If you want to go with PHP solution, then the post_class filter hook (codex) would allow you to do that – see the example below. You can paste that to your functions.php. Just be aware that hiding the post from posts list doesn’t make it restricted from access, users can still use the post’s edit … Read more

WP admin style not refreshing

A more standard way to enqueue stylesheets in WP admin is to use wp_enqueue_style function on admin_enqueue_scripts hook. if I do any changes afterwards it doesnt update This sounds like a browser cache isssue. You can bust the cache by adding a dynamic version number parameter to the stylesheet url with the native php function … Read more