BPOVIA Website Design

Icon

Provides High-quality Web Design And Maintenance Service In The World

Optimize Your WordPress Blog Manually

Obviously it will take longer for blogs to load as more and more plug-ins are installed into WordPress, then how to solve this issue? Now let’s take a look at how to achieve the functionality as plug-ins do manually.

As a simple and easily-used WordPress plug-in, All-in-one SEO enables users to optimize websites basically, however, every coin has 2 sides, some of its advantages switch to shortcomings, for example:

1. It generates meta description label using article summary, which means addition database fields as well as the number of SQL queries, in this way, databases suffer more burden.

2. Search engines may hate the unchangeable optimizing way as it does.

3. Unnecessary consumption of host resources happens and the website loading time will be longer.

BPOVIA recommends more professional way of solving issues like this, we are totally achieve the functionality of All-in-one SEO manually and make the website SEO friendly.

Firstly we need to know the basic working principle of All-in-one SEO.

  • Title Structure

Typically, the blog title is structured like this: postname | blogname, then we can change header,php in theme as follows:

<title><?php if (is_home() ) { ?><?php bloginfo('name'); ?> | <?php bloginfo('description'); ?><?php } else {?><?php wp_title(''); ?> | <?php bloginfo('name'); ?><?php } ?></title>
  • Meta Description

By customizing field we can successfully add meta description to any article, we are able to invoke separate written description by using get_post_meta($post -> ID, “description, true);.

The code could be:

<?php
if (is_home()) {
$metakeywords = "BPOVIA, China Business Marketing, China Business Development, import, export";
$description = get_bloginfo('description');
$url = get_bloginfo('url');
} else if (is_single()) {
$key="description";
$description = get_post_meta($post->ID, $key, true);
$url = get_permalink($post->ID);
$metakeywords = "";
$tags = wp_get_post_tags($post->ID);
foreach ($tags as $tag ) {
$metakeywords = $metakeywords . $tag->name . ", ";
}
}
?>
<meta name="keywords" content="<?php echo $metakeywords; ?>" />
<meta name="description" content="<?php echo $description; ?>" />

Now we have inserted SEO information to both index page, but for single post, description information is still empty, because the customer field has not been added. Take a look at the follow page, once we add description field to the Custom Fields, we almost optimize relevant articles.


Next week BPOVIA would share the manual alternatives of other plug-ins.

BPOVIA All Rights Reserved
Maintained by BPOVIA Web Design Team

Category: BPOVIA Service Introduction, pros and cons, SEO

Tagged: , , , , ,

Comments are closed.