As a webmaster of WordPress website, I hope my website can rank well in Baidu or Google search engine.At this time, we should not only do a good job in the content of the wordpress website, but also do a good job in SEO optimization of the wordpress website.In the previous chapter, we introduced the SEO optimization of the homepage of the wordpress website. Today, we will introduce the SEO optimization of the classified directory page of the wordpress website.
As we all know, the titles of classified directories are generally short, some of which are only two words, which is conducive to SEO optimization. Therefore, we will add SEO titles, keywords, and descriptions to the background interface of the classified directory of the wordpress website, so that when we add or modify the classified directory, we can create SEO titles, keywords, and descriptions for each classified directory.Now, follow me to have a look.For details, you can watch the video "How to add SEO titles and keywords to the classification directory of wordpress websites?" published on my website.
Step 1: Add the background "Add Interface".
Add several SEO forms to the "Add New Category Directory" interface in the background of the wordpress website.The Add New Classification Directory interface is shown below by default.
Put the following code into the functions.php file of the wordpress theme.
//Add SEO title, keyword and description to the category directory//Add the page mount field add_action (category_add_form_fields, category_term_field)//Category add_action (post_tag_add_form_fields, category_term_field)//Label function category_term_field() {wp_nonce_field (basename (__FILE__), category_term_field_nonce);//wp_enqueue_script (dreamc_term_fields,
At this time, we will go to the background to see the "Add New Category Directory" interface, as shown in the following figure:
Step 2: Add SEO form in the background classification "editing interface".
By default, the WordPress background classification editing interface is shown in the following figure.
We need to add SEO title, keyword and description forms to the category editing interface.In the functions.php file of the wordpress theme, put the following code:
//The classification extension information editing interface add_action (category_edit_form_fields, edit_category_term_field)//Category add_action (post_tag_edit_form_fields, edit_category_term_field)//Tag function edit_category_term_field ($term) {//Get data $category_title=get_term_meta ($term ->term_id, category_seo_title, true); $category_keywords=get_term_meta ($term ->term_id, category_seo_keywords, true); $category_des=get_term_meta ($term ->term_id, category_seo_des, true); echo<tr class="form field d category term field wrap">;Echo<th scope="row"><label for="category term title">SEO title</label></th>;echo <td>;echo wp_nonce_field( basename( __FILE__ ), category_term_field_nonce );echo <input type="text" name="category_term_title" id="category-term-title" value=".$category_title."/>;echo </td>;echo </tr>;echo <tr class="form-field category-term-field-wrap">;Echo<th scope="row"><label for="category term keywords">SEO keywords</label></th>;echo <td>;echo <textarea name="category_term_keywords" id="category-term-keywords">.$category_keywords.</textarea>;echo </td>;echo </tr>;echo <tr class="form-field category-term-field-wrap">;Echo<th scope="row"><label for="category term des">SEO description</label></th>;echo <td>;echo <textarea name="category_term_des" id="category-term-des">.$category_des.</textarea>;echo </td>;echo </tr>;}
Let's go to the background editing interface of category directory, and the effect is as follows:
Step 3: Add the code of "Save Data".
After we add or modify data in the classification directory interface on the background of the wordpress website, we also need to save them, so we need to add the following code to the functions.php file to save data:
Through the above steps, we have added SEO titles, keywords, and descriptions to the category directory of our wordpress website. In the future, when we add the category directory, we fill in these information, and then call it at the head of the foreground template to achieve SEO optimization of the category directory page of our wordpress website.
Original title: How does the WeChat management system manage enterprise WeChat chat content How does the enterprise WeChat chat content manage enterprise WeChat chat content? Most WeChat chat content viewers on the market are for private viewing, but viewing WeChat chat content in enterprises is also particularly important.Without the use of WeChat management system, many behaviors such as abusing customers, flying orders, and randomly promising customers are
Original title: Role and management content of access control management system and requirements Role and management content and requirements of access control management system,Maintain normal production
Recently, Chiping District Sub branch of Agricultural Development Bank of China actively implemented the second phase online exercise of the new generation credit management system. In accordance with the requirements of the overall exercise plan issued by the superior bank, it carefully deployed, carefully organized, clearly defined the division of labor, strengthened the coordination and linkage between various departments, closely cooperated, and effectively performed various work responsibilities during the exercise.Chiping District Sub branch organized all staff of the Customer Department to participate in the online drill
On January 11, IT Home reported that on the "Tuesday patch" day in January 2023, Microsoft pushed the KB5022303 update to users of the official version of Windows 11, upgrading the version number to 22621.1105.Update content: This update addresses
Two days ago, we received an official email "to Baichuan to remove from the salesforce app store" - because the United States issued an administrative order on August 6, 2020, prohibiting "any WeChat related transactions", which came into effect 45 days after the administrative order was issued (that is, September 20).The "one-stop marketing cloud" provided by Zhiqu Baichuan includes
As paper has almost disappeared, your company's important documents and information need to be digitized, stored and used in a way that supports processes and workflows.Through the enterprise content management (ECM) system, you can better manage enterprise content and choose a more interactive way to process the information of the entire enterprise.Do you check the internal documents, invoices, training materials, contracts, finance