It’s because the action ‘admin_print_footer_scripts’ is either conflicting with another plugin, or WordPress itself because the priority has not been set.
So set it like this so there’s the highest priority: add_action(‘admin_print_footer_scripts’,’amm_edit_next_prev_post_button’, 999);
However, the block editor toolbar loads last, so the $(window).load(function() that is in this plugin, is not being called after the entire page is loaded, therefore, it’s being called BEFORE the editor toolbar at the top, and therefore, won’t work. This has to be rewritten to load this jQuery AFTER the toolbar loads.
-
This reply was modified 3 years, 7 months ago by
somethumb.
@somethumb – thanks I will look into it!
Hi –
I am having the same issue! I don’t do coding, so is there a step by step way to resolve this issue?
thanks!
I am just trying this plugin out on WP 5.7 and don’t see the next/prev links anywhere. does anyone have an update on how to get this working? Very annoying to go back and forth to list page — this feature should really be part of WP I think!
Edit the plugin php file, on line 47 add product to the type supported types array:
$supported_types = array('page', 'post', 'product');