tonyoravet
Forum Replies Created
-
Forum: Plugins
In reply to: [Yoast SEO] Updating Old Posts Adding -# to URLAn update to this – it looks like this issue only happens with YOAST SEO when the Create by Mediavine Plugin is on the posts too.
@esmi – Sorry. This is regarding the same issue…so I didn’t think it was necessary to post my own topic. I’ll make sure to post my own topic next time.
Folks – I’m seeing the same thing and in Chrome Developer tools I’ve see the following errors.
This is also happening while running the 2.0.18 beta release.
Forum: Hacks
In reply to: Collapsing Category in Post Write ScreenCeh,
Sure….
I created a separate file and called it expanding-categories.php and included it in my functions.php file.
The code to include it in the functions file looks like this:
require_once ($includes_path . '/custom/expanding-categories.php');
The code for the expanding-categories.php looks like this:
[Code moderated as per the Forum Rules. Please use the pastebin]
Forum: Hacks
In reply to: Collapsing Category in Post Write ScreenGeorge,
I don’t normally do that….and after looking at this a little further I figured out how to include it into the themes functions.php file.
Thanks for your help!
TonyForum: Hacks
In reply to: Collapsing Category in Post Write ScreenFigured this out…add this code to the admin-footer.php file. Be careful if you upgrade though as this script below will need to be added back in unless there is a simple way to add this into a functions.php file somehow:
<script type="text/javascript"> jQuery(document).ready(function($){ $('#categorychecklist ul').hide(); $('#categorychecklist input[type="checkbox"]:checked').parents('li').children('ul').show(); $('#categorychecklist input[type="checkbox"]').change(function(){ if( $(this).attr('checked') ){ $(this).parents('li').children('ul').show(); }else{ $(this).parents('li').children('ul').hide().find('input[type="checkbox"]').removeAttr('checked'); } }); }); </script>
Forum: Hacks
In reply to: Collapsing Category in Post Write ScreenThanks George! I have this in my code now
add_action( 'admin_footer', 'checkboxstuff', 50 ); function checkboxstuff(){ jQuery(document).ready(function($){ $('#categorychecklist ul').hide(); $('#categorychecklist input[type="checkbox"]:checked').parents('li').children('ul').show(); $('#categorychecklist input[type="checkbox"]').change(function(){ if( $(this).attr('checked') ){ $(this).parents('li').children('ul').show(); }else{ $(this).parents('li').children('ul').hide().find('input[type="checkbox"]').removeAttr('checked'); } }); });
But it doesn’t seem to be working right.
Any ideas?