I am getting bug
-
It create jQuery issue for me,that is TypeError: jQuery(…).val(…) is undefined..
lptx-s…ver=1.b (line 5)it is not getting value of i = jQuery(‘#title’).val().length; in js into my custom content type configuration / setting page.
Like if some one using custom content type manager plugin and then I create a custom content type called “abc”
URL sholud be
…../wp-admin/admin.php?page=cctm&a=edit_post_type&pt=abcTo solve this made some changes these are
1. Line no 52
add_action(‘admin_enqueue_scripts’, ‘lptx_scriptsNl18n’);
in place of add_action(‘admin_print_scripts’, ‘lptx_scriptsNl18n’);2. line no 76 in function lptx_scriptsNl18n()
I used $hookfunction lptx_scriptsNl18n($hook){
if( ‘post.php’ != $hook && ‘edit.php’ != $hook && ‘post-new.php’ != $hook)
return;
reaming are same ……
…………
..Note :-
I used $hook so that I make sure that function and specially lptx-script.js will only works on post.php, edit.php, post-new.php page only.
If I am wrong somewhere then please let me know..
https://www.ads-software.com/plugins/limit-a-post-title-to-x-characters/
- The topic ‘I am getting bug’ is closed to new replies.