WordPress old site changes fixed link experience and considerations

Two days ago, my blog has changed the WordPress fixed link in order to better show it to everyone. If you’re new, don’t care, just change! But if you have been updating for a few years like me, all major search engines have been included, it is necessary to look at this article! I hope my experience can give you some reference.

Precautions

  1. Consider the new fixed link format;
  2. The old address 301 jumps to the new address;
  3. Collection of major search engines (sitemap updates);
  4. The update of the article’s internal link address;
  5. The public number automatically updates the address.
  6. Here we come to a detailed record of sharing brother brother’s blog revision experience.

Permalink format

New and old address 301 jump

I have reviewed numerous tutorials. Since I am so stupid, I used WordPress University to publish the “WordPress Change Permalink Structure Automatically 301 Old Links to New Links” plug-in, WP Permalinks Migration, released in August 2013.

In order to prevent the download address of the wp-permalinks-migration plugin from being invalid, I will make a backup here and it will be convenient for everyone to use. After filling out the old fixed link structure, you can set up a new fixed connection.

Major search engines submit updates

In the major search engine webmaster platform submitted to the site revision, my brother is stupid, only the url on the revision of the submission, so we refer to the moon on the stairs blog and Zhang Ge blog tutorial, recorded how to get all WordPress static link method.

It is worth mentioning here is that soon after the brother submitted the url to the revision, Baidu told me that there is no need to change the version, as shown below. Of course, my brother thinks 301 jump is very important here.

Article link address update

There are few articles, or these brothers don’t say that they use the code to automatically link. Today, there are many articles and there are hundreds or even more manual links.

First of all, find out your own address rules, such as the oldest brother in the original “best all-time best posture, real people really show! You are worth learning and possessing! ”

You can use the following code to execute sql in the database.

UPDATE wp_posts SET post_content = REPLACE( post_content,'https://www.dujin.org/fenxiang/tupian/','https://www.dujin.org/');

 

WordPress Music Player Plugin WP-Player v2.0

online preview

Demo: http://webjyh.com/wp-player/

WP-Player introduction

The upgrade has undergone an overall major restructuring of the page music player js, background MetaBox input method, plug-in structure and so on.

  • Rewritten the method to obtain shrimp ID; directly enter the URL to obtain shrimp ID and the corresponding music type;
  • Support single music page, album page, artist page, featured page (you can also create your own collection);
  • Supports multi-song playback; fully compatible with previous old versions of short codes;
  • Perfect support IE6+, FireFox, Chrome browser;
  • Discard the loop parameter in the short code;
  • Handle the address of the shrimp shrimp to the plug-in itself.
  • Turn off background useless option settings;
  • Support background custom upload music files or music links;

Use method area

  1. Open the favorite song page in the shrimp net, copy the song page URL: http://www.xiami.com/song/2078022……
  2. And copy the URL into the WP-Player form. The music type will automatically choose based on the URL.
  3. Click the Get Music ID button, and the music ID appears in the form.
  4. Fill in the content of your article with the short code [player autoplay=”1′′].
  5. In the short code, autoplay indicates whether to play automatically; parameter “0” indicates no; “1” indicates yes;
  6. PS: It is recommended to use the URL to get the music ID.

Plug-in dependency area

  1. Require jQuery 1.7+ repository, if the version of jQuery used by the theme is too low, please upgrade to 1.7+ version.
  2. The current host is required to support the PHP simplexml_load_file() function, which is used to grab shrimp music data.
  3. If the v2.0.1 version is not supported by the host, Sina Cloud resolution will be used.

Precautions area

  1. Only one player can be set in an article.
  2. For user experience, it will only be enabled if it is automatically played in the article detail page. Home and lister settings will be useless.
  3. Because plug-ins need to rely on jQuery, such as the lack of jQuery topics; need to be selected in the background WP-Player settings;
  4. If both the shrimp ID and the custom upload music are set, the shrimp ID analysis will be preferentially used.

Plug-in download area

  1. Manage via WordPress background plugin => Install plugin => Search plugin => WP-Player => Click to install plugin
  2. Official website download https://wordpress.org/plugins/wp-player/ Upload Plugin => Install Plugin

Shrimp ID acquisition area

  1. Single song URL, the general URL will contain **song** characters;
  2. Album page URL, the general URL will contain **album** characters;
  3. Artist page URL, the general URL will contain **artist** characters;
  4. Featured collection page, the general URL will contain **collect** characters;
  5. With regard to the production of the collection of shrimp and rice, it must be set to be visible to everyone at the time of production so that the song list can be obtained;

Developer Zone

  1. Because of the performance of plugin loading, the code in the plugin is all compressed.
  2. The source code I hosted on GitHub, please refer to https://github.com/webjyh/WP-Player
  3. Audio playback is managed with SoundManager2, and the GitHub project is Star.

About feedback

  1. Author: M.J
  2. Blog message: http://webjyh.com
  3. Microblogging message: http://weibo.com/webjyh/home?wvr=5