Most important wordpress tags for wordpress themes and template

Most important wordpress tags for wordpress themes

In wordpress themes some tags are very important for SEO purpose. Here are some important wordpress tags for wordpress. If some of them tags are not included then you should modify the theme or you need to choose another wordpress theme.

Most important wordpress tags for wordpress themes and template
Most important wordpress tags for wordpress themes and template

 

Most important wordpress tags for wordpress themes and template

Here I created the list of wordpress tags which must be added in the header.php file of your wordpress theme.

  1. <?php language_attributes(); ?> found in header.php if not present then put in that file.
  2. <?php bloginfo(‘html_type’); ?> found in header.php if not present then put in that file.
  3. <?php bloginfo(‘charset’); ?> found in header.php if not present then put in that file.
  4. <meta name=”description” content=”<?php the_excerpt_rss(); ?>” /> found in header.php if not present then put in that file.
  5. <link rel=”shortcut icon” href=”/favicon.ico” type=”image/x-icon” />found throughout the theme and header.php if not present then put in that file.
  6. <?php bloginfo(‘name’); ?> found throughout the theme and header.php if not present then put in that file.
  7. <?php if ( is_singular() && get_option( ‘thread_comments’ ) ) wp_enqueue_script( ‘comment-reply’ ); ?> found throughout the theme and header.php if not present then put in that file.
  8. <meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> <!– leave this for stats –> found in header.php. If you’re using a 3rd party stats program (like Google Analytics) then you’ve nothing to worry about, and if your version of WordPress is out of date, you won’t want hackers knowing that.
  9. <?php bloginfo(‘stylesheet_url’); ?> found in header.php.
  10. <?php bloginfo(‘rss2_url’); ?> founder in header.phpsidebar.php and footer.php. Be careful if you switch to FeedBurner after doing this. Make sure you remember to update the feed URL here manually (The FeedSmith plugin won’t do it anymore).
  11. <?php bloginfo(‘pingback_url’); ?> found in header.php.
  12. <?php bloginfo(‘stylesheet_directory’); ?> found throughout the theme.
  13. <?php bloginfo(‘description’); ?> found throughout the theme. Your site’s slogan
  14. <?php wp_head(); ?> found in header.php in head section
  15. <body <?php body_class(); ?>>found in header.php.

Here is list which functions and tags need to include in functions.php file.

  1. if ( ! isset( $content_width ) ) $content_width = 500; found in functions.php
  2. add_filter(‘the_content’, ‘make_clickable’); found in functions.php
  3. add_theme_support( ‘post-thumbnails’ ); found in functions.php
  4. add_theme_support( ‘automatic-feed-links’ ); found in functions.php
  5. add_shortcode(‘wp_caption’, ‘fixed_img_caption_shortcode’); found in functions.php
  6. add_shortcode(‘caption’, ‘fixed_img_caption_shortcode’); found in functions.php

Above tags are very important and you need to include the this tags in your theme files.

Published by

Purab

I am Purab from India, Software development is my profession and teaching is my passion. Programmers blog dedicated to the JAVA, Python, PHP, DevOps and Opensource Frameworks. Purab's Github Repo Youtube Chanel Video Tutorials Connect to on LinkedIn

One thought on “Most important wordpress tags for wordpress themes”

Leave a Reply

Your email address will not be published.