Htaccess Custom 404 Error Document

[How To] htaccess Use Custom Error Document in the Current Folder

Apache only allows the ErrorDocument directive using the document root directory. If you don’t want to hard code full path of your error document in the htaccess file, but still need to use your own directory, you can use the following rewrite hack to redirect all errors to your static HTML file. # Use Custom […]

Read more [How To] htaccess Use Custom Error Document in the Current Folder

Wordpress Get Post Id By Meta Value

WordPress: Get Post ID by Meta Value

If you are into developing custom themes for WordPress, you probably know how useful it can be to use custom meta fields in your posts. But only adding those fields is not enough. You need custom loops or functions to filter/get your posts using those meta values. In this post, we share with you a […]

Read more WordPress: Get Post ID by Meta Value

Wp Remove Wlwmanifest Header Php

[How To] Remove wlwmanifest from WordPress

WordPress automatically adds a wlwmanifest link to your site header for Windows Live Writer support. This is a link tag with a reference to your site’s wlwmanifest.xml file: <link rel=”wlwmanifest” type=”application/wlwmanifest+xml” href=”https://wpassist.me/wp-includes/wlwmanifest.xml” /> However, this manifest is not used by most users out there. If you want to remove the wlwmanifest link from your site […]

Read more [How To] Remove wlwmanifest from WordPress

[How To] Disable feed URLs in WordPress

WordPress automatically generates RSS feed links on your page header. To disable automatic feed urls on your site header, you can use the following snippet. Copy the following code into your functions.php file to remove the header rss feed links; remove_action( ‘wp_head’, ‘feed_links_extra’, 3 ); remove_action( ‘wp_head’, ‘feed_links’, 2 );

Read more [How To] Disable feed URLs in WordPress

[How To] Remove DNS-Prefetch Links Without Plugin

Removing DNS-Prefetch from wp_head hook is a pretty easy task. Just add the following code snippet to your functions to remove DNS-Prefetch links on your header; // Remove dns-prefetch Link from WordPress Head (Frontend) remove_action( ‘wp_head’, ‘wp_resource_hints’, 2 ); What is DNS Prefetch? DNS prefetching is an attempt to resolve domain names before a user […]

Read more [How To] Remove DNS-Prefetch Links Without Plugin