Discover how to call wordpress on phone, include the articles, news, trends, analysis and practical advice about how to call wordpress on phone on alibabacloud.com
Help: WordPress In an article at the same time belong to two categories, you can make this article in different categories to call different templates?
If the article belongs to both category A and category B, there is a list of articles in the foreground category A and category B two pages, can be implemented from the Category A list click on the article to call
1, directly disable the file type detection, in the wp-config.php file, add such a sentence code define (' Allow_unfiltered_uploads ', true);2, inside the functions.php, add the following code (the most important is the yellow background that 2 sentences)://Add a role that allows regional edits to be addedAdd_role ('Dq_edit','Area Editor', Array ('Level_3'=true, 'Read'=true, 'edit_posts'=true, 'edit_published_posts'=true, 'edit_others_posts'=true, 'publish_post
Whether we are adding tag to the site settings, or a blog that calls the tag aggregation related content in the side position becomes a collection. But in the user experience, depending on the template, the tags we display in the sidebar are sometimes not very good-looking. such as the size of the font, such as the number of calls more.In the template file we are really difficult to modify this kind of parameters, we need to use the WordPress program
Comments_templatethe Comments_template function is a function that invokes the comment template, which is simple to use, and is an include file class function, like Get_header (), for today's use.
DescribeAs already mentioned, it is a function that invokes the comment template.
Use
which
$file filename Default value to call:/comments.php$separate _comments whether to separate comments of type without comment Boolean default value: Fa
This refers to the default article type template (single.php,category.php)Application Scenarios:Default article default has 2 categories (news, game information)all sub-categories under news call " News list template , news content Template "all sub-categories under game profile call " game Data list template , game profile content Template "Article List page category.phpJudge in category.php.If the subcate
Register_nav_menus () (Register menu)Register_nav_menus () function is used to register a menu, the menu refers to the WordPress 3.0+ menu manager, after registering the user can be in the menu manager drag generated navigation menu.
Usage
Register_nav_menus ($locations);
Parameters
$locations
(array) (must) to register the menu, the key value is the menu ID, the key name is the menu name, you can create multiple.
Default value: None
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.