Move files into folders, sorted by month and day with PowerShell

Notes: Not suitable for folder with sub-folders, such as folder of extracted zip file Recommended to execute on a test environment first Steps: Change the $files and $targetPath values accordingly Copy the modified script and paste into Windows PowerShell Wait The script: # Get the files which should be moved, without folders $files = Get-ChildItem 'CHANGE … Continue reading Move files into folders, sorted by month and day with PowerShell

Hide WordPress header image on specific URL

Objective: Hide WordPress header image on specific URL Target URL: All URL except http://hilmanali.com/blog/ Theme: Sorbet (child) File name: header.php Original code: <body <?php body_class(); ?>> <div id="page" class="hfeed site"> <?php do_action( 'before' ); ?> <header id="masthead" class="site-header" role="banner"> <?php if ( get_header_image() ) : ?> <a href="<?php echo esc_url( home_url( '/blog' ) ); ?>" rel="home"> … Continue reading Hide WordPress header image on specific URL