thekroyaard

Breadcrumb Add breadcrumb and show post’s or page’s location in your WordPress website. So there is two deferent code to show Breadcrumb. How To Add Breadcrumb using code Login cpanel. Add given code in functions.php of active theme’s folder. Use this code when want to show only category name  function get_breadcrumb() { echo ‘<a href=”‘.home_url().'” […]

Permalink Structure Change and add .html extension in post url. Use custom permalink structure option and entre given code in blank field. How to Add .html in post url Open WordPress Dashboard. Go to Setttings and click on Permalink Then click on custom structure and paste /%postname%.html in black field. Then click on SAVE Changes […]

Create .htaccess file for wordpress’s website. open given website link and use online tool for making .htaccess file. Official Website – Click Here How to Create .htaccess open website – click here. Enter your website’s details and fill all fileds. then click on GENERATE .HTACCESS Button. Copy and Paste GENERATED code in your public_html > […]

Label Post Label name is a category name. When you publish any post and add Label name, then automatic show in related item’s in same label name’s post. How To Show Latest Posts with Thumbnail Use this code in where you show specific label name’s post in blogspot website. <style> /* Recent posts by labels […]

Permalink website’s URL is Permalink, Have your website in wordpress and want to customize permalink structure via code, So Open your active theme’s folder and paste given code in functions.php file. /* permalink structure*/ add_action( ‘init’, function() { global $wp_rewrite; $wp_rewrite->set_permalink_structure( ‘/%postname%/’ ); } ); When you paste this, then your new posts and uploaded […]

Image ALT Attribute To understand the search engine in the website, there is an ALT attribute, by whose name it can be identified whose photo is. How to Add Name in ALT attribute using code- >> Open your active theme and paste given code in functions.php. add_action( ‘add_attachment’, ‘my_set_image_meta_upon_image_upload’ ); function my_set_image_meta_upon_image_upload( $post_ID ) { […]

If You have create SQL database by mistake, And you want to delete but not know MAIN SQL name. So I have solution to know main domain name’s sql database name. How to Know MAIN SQL Database Name login in cpanel Go to public_html then find and open wp-config.php file and See MAIN SQL Database […]

Author/Username When we publish a post, the profile of the user who has published the post by WordPress automatically gets indexed in the sitemap, due to which sometimes the URL of the main post is not indexed but the author’s link appears in the search engine, due to which The visitors coming to the website […]

Taxonomies Stop indexing your website’s taxonomies (category, post-tag, post-format/type) without using any plugins. Just paste given code in your functions.php file. How to Stop indexing taxonomies via code add_filter( ‘wp_sitemaps_taxonomies’, function( $taxonomies ) { unset( $taxonomies[‘post_tag’] ); unset( $taxonomies[‘post_format’] ); unset( $taxonomies[‘category’] ); return $taxonomies; } ); Then SAVE functions.php file after paste this code.