Dev Notes
Mahesh Waghmare

FIXED: PHP Unit test issue PHP Warning/Warning/Fatal error: Failed to open stream: No such file (mock-mailer.php) for windows

After setup the PHP unit test on your Windows operating system maybe you get below error: In file C:\Users\MaheshW\AppData\Local\Temp\wordpress-tests-lib\wp-tests-config.php line 7 has code: Here, ABSPATH return the invalid path. You can simply change the above code with below: NOTE: Here change the {USERNAME} with your own user name. To know the user name just open

Read More »
Code Snippets
Mahesh Waghmare

Show group by alphabet posts with shortcode using WP_Query

Create an array of posts group by alphabet with WP_Query. Use below to create the list of posts array with the group by alphabet. Note: I have used post type. You can change this post type with your own. Also, you can modify the WP_Query parameters. Now we can show the posts with the group

Read More »
Scroll to Top
%d bloggers like this: