Category: WordPress Issue

  • How to add a protocol to URLs from WordPress post content

    How to add a protocol to URLs from WordPress post content

    Sometimes you have URLs without http:// OR https:// into WordPress post content.

    So you can use the following function for that. You can use this function for the_content filter for WP. And also you can use this anywhere in PHP code other than WP.

    https://gist.github.com/BhargavBhandari90/67489aad26967f6afe2d6e52f278cc99
  • Asking authentication when we try to access homepage on WP Engine

    Recently, I migrated a site from the flywheel to WP Engine using Migrate Guru plugin.

    After migration, I was asked to add browser authentication when I try to access the homepage. It was not asking the authentication when I try to access wp-admin.

    Below is the screenshot what I was getting.

    So I connected WP Engine’s support guy. And in my case there was a third party plugin was creating the issue. After deactivating that plugin, issue was fixed.