首页 WordPress函数大全 get_sidebar()

get_sidebar()

2020-05-01 / 3538阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_sidebar( string $name = null )

Load sidebar template.

描述

Includes the sidebar template for a theme or if a name is specified then a specialised sidebar will be included.

For the parameter, if the file is called "sidebar-special.php" then specify "special".

参数

$name

(string)
(Optional)
The name of the specialised sidebar.

Default value: null

大家谈论
    我的见解