How to fix error: To perform the requested action WordPress needs to access your web server

Overview #Overview WordPress will prompt you for FTP credentials If it does not have permission to write the files it needs to. Whenever this happens we can see the error: To perform the requested action, WordPress needs to access your web server. Please enter your FTP information to continue. If you do not remember your

Read More »

How to avoid automatic redirection or canonical redirection in WordPress?

Overview #Overview WordPress redirects the incoming links to the proper URL based on the site url. Search engines consider the link www.somedomain.com and somedomain.com to be two different URLs when they both go to the same location. This SEO enhancement prevents penalties for duplicate content by redirecting all incoming links to one or the other.

Read More »

How to enable allow_url_fopen from the php.ini file?

Introduction #Introduction allow_url_fopen is a filesystem and streams configuration option. Which enables the URL-aware fopen() wrappers that enable accessing URL objects like files. If allow_url_fopen() is enabled then by default we can access remote files using the FTP or HTTP protocol. Also, extensions like zlib may register additional wrappers. Issue #Issue We could not use

Read More »

6 Years Complete in The WordPress

I got an achievement notification on my blog https://maheshwaghmare.com/. I have just completed the 6 years with WordPress. Note: This is a Quick Short Post.

Read More »

How to Fix the ERROR: the “PHPCompatibilityWP” coding standard is not installed.

How to Check PHPCompatibilityWP exist? #How to Check PHPCompatibilityWP exist? To check the PHPCompatibilityWP coding standard is installed on your system use command phpcs -i E.g. phpcs -i You can see the result like below: The installed coding standards are MySource, PEAR, PSR1, PSR12, PSR2, Squiz, Zend, WordPress, WordPress-Core, WordPress-Docs, WordPress-Extra and PHPCompatibility Maybe you

Read More »
New Launch maheshwaghmare.com
News
Mahesh Waghmare

Introducing the new maheshwaghmare.com

I’m pleased to announce the launch of my new website! After 5 years of casual blogging, I am excited to officially announce the launch on 11 November 2019. The new site launch is available and the URL is https://maheshwaghmare.com/ If you have a plan to start a blog? Then, Let’s it with WordPress.com as FREE.

Read More »
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 »
Code Snippets
Mahesh Waghmare

How to capture website screenshot with CLI (Command Line Interface)

Introduction #Introduction Before writing about how to create a website screenshot of website with CLI command, I think, I need to share some background. Recently, I was working on some project in which I need to set 1000+ web page screenshots and resize them and set as a featured featured image for the post. In

Read More »
Dev Notes
Mahesh Waghmare

Auto translate WordPress theme and plugin strings with WP CLI

How to use? #How to use? Create fresh WordPress setup. Clone the plugin wp-i18n into your /wp-content/plugins/ directory. Import the database latest.sql with WP CLI commnd as below:wp db import latest.sql Now use below commands to translate any plugin/theme from wp.org. To translate the plugin use 2 WP CLI commands: Here, download_plugin_po & generate_plugin_po are

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