tonto24
Forum Replies Created
-
Forum: Plugins
In reply to: [StaffList] Searching in Admin page doesn’t workah sorry, their updated version didn’t work for me and I had to hard code in fixes. I thought that’s what you were referring to
Forum: Plugins
In reply to: [StaffList] Searching in Admin page doesn’t workForum: Plugins
In reply to: [StaffList] Searching in Admin page doesn’t workJust tried loading jQuery ui in stafflist.php on line 105 with wp_enqueue_script(‘jquery-ui-sortable’); and sortable’s working now
Forum: Plugins
In reply to: [StaffList] Searching in Admin page doesn’t workHey, that didn’t fix it for me but I had a look at the stafflist_admin.js file and changed line 50 from jQuery(“#stafflist_new”).focus(function() { to jQuery(“#stafflist_new”).click(function() { and that fixed adding records for me. With the sortable error, I can’t see jQuery UI being loaded anywhere, maybe it’s not a default in WordPress but your install has another plugin using it?
Forum: Plugins
In reply to: [StaffList] Searching in Admin page doesn’t work* 5.1.1
Forum: Plugins
In reply to: [StaffList] Searching in Admin page doesn’t workI’m having the same problem with a fresh install with no other plugins. Have you tested the plugin with WordPress 5.11, maybe the new WP version breaks the plugin JS?
You are most definitely absolved! Thanks for such quick commenting, your plan sounds perfect.
Forum: Fixing WordPress
In reply to: Current Page Title is missingAnyone got any ideas on this? It’s a really frustrating problem.
Forum: Fixing WordPress
In reply to: Current Page Title is missingSorry, I forgot to mention the problem only starts happening once I set a static Home and Posts page (but it worked and still works for the first number I’ve set up in the same way)
Forum: Fixing WordPress
In reply to: Can an Admin specify that a page can't be deleted by an Editor?That worked perfectly, I also added in another test for a static posts page. Thanks again!
add_action(‘trash_post’,’no_remove_req_page’);
function no_remove_req_page( $_the_post_id ) {
global $post;
if ( ‘page’ != $post->post_type)
return;
if ( get_option(‘page_on_front’) == $_the_post_id )
// If the ID matches the front page ID, kill the delete post action.
wp_die(‘Cannot delete the front page, sorry!’);
elseif(get_option(‘page_for_posts’) == $_the_post_id)
wp_die(‘Cannot delete the news page, sorry!’);
return;
}Forum: Fixing WordPress
In reply to: Can an Admin specify that a page can't be deleted by an Editor?Cool, thanks for that! I’ll try it out.