WordPress optimization to add ALT and title attributes to the article image

In WordPress optimization. Image ALT and image title optimization is a very important SEO optimization, but if there are too many images in the article, it will be very troublesome to manually add alt attribute and image title attribute to each image, especially when there are too many images. Of course, there are WordPress plugins […]

WordPress adds links to the specified keywords in the content of the article

function replace_text_wps($text){ $replace = array( ‘Theme King’ => ‘<a href=”https://yijile.com/tag/wordpress/” rel=”tag” >Theme King</a>’, ‘WordPresstheme’ => ‘<a href=”https://wpfans.org/theme” rel=”category tag” >WordPresstheme</a>’, ‘WrodPresscourse’ => ‘<a href=”https://wpfans.org/wplearn” rel=”nofollow” target=”_blank” >WrodPresscourse</a>’ ); $text = str_replace(array_keys($replace), $replace, $text); return $text; } add_filter(‘the_content’, ‘replace_text_wps’); usage method Paste the following code into your own WordPress theme functions.php File. Related Article Two methods […]

Login users display different WordPress menus

If the login user and the non login browser display different menus, the following code can be used: the login user displays different WordPress menus add the following code to the current topic function template functions.php Medium: if( is_user_logged_in() ) { $args[‘menu’] = ‘logged-in’; } else { $args[‘menu’] = ‘logged-out’; } return $args; } add_filter( […]

The development of WordPress topic – the comment list expands and expands to show sub comments

This article records a list of WordPress reviews you’ve been fooling around recently The picture is small and fast. If you look at it carefully, you will find that the sub comment is controlled by clicking the View dialog button. At the same time, the View dialog and close dialog also change with the scaling. […]

6 excellent WordPress SEO plugins

Article directory [hidden] What is WordPress SEO plugin?Why WordPress SEO plugin?Three reasons to use WordPress SEO pluginWhat to look for in WordPress SEO plug inSix excellent WordPress SEO plugins1. yoast seo2. all in one seo pack3. rank math4. seopress5. the seo framework6. schema proConclusion: the best WordPress SEO plugin Excellent WordPress SEO plugin can help […]

How to speed up the picture loading speed of WordPress website

Article directory [hidden] Image optimization and its importanceHow to set performance benchmarkSuggestions on speeding up the loading speed of website pictures1. Choose the correct file format2. Use image compression tools3. Enable browser caching4. Forbid image link theft5. Use delay loading6. Consider using CDNconclusion Image is very important to attract and keep readers’ interest. However, they […]