Focus on cloud service provider activities
Notes on website operation and maintenance

Method of canceling the "category" label of WordPress path

In the afternoon, Lao Zuo finally came up with a solution. In the morning, I published an article“ More tangled "WP No Category Base" plug-in ". I didn't pay attention to it before. It may be the problem of the latest version 3.4 upgrade, although it is installed" WP No Category Base "The plug-in can solve the problem of canceling the" category "label. However, after this upgrade, the words" category "will appear in the directory navigation or inner page classification, but after clicking, it will jump to the label free.

Find a solution in the afternoon, then continue to use this plug-in. However, you need to modify the plug-in. Find the“ no-category-base.php "File. Replace the following code:

$wp_rewrite->extra_permastructs['category'][0] = '%category%';
Modify to
$wp_rewrite->extra_permastructs['category']['struct'] = '%category%';

After modification, you should check whether the "category" in the navigation is cancelled.

Domain name host preferential information push QQ group: six hundred and twenty-seven million seven hundred and seventy-five thousand four hundred and seventy-seven Get preferential promotion from merchants.
Like( zero )
Do not reprint without permission: Lao Zuo's Notes » Method of canceling the "category" label of WordPress path


Scan the code to follow the official account

Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge