是的,您可以在主题中使用插件中的函数。请使用function\\u exists()函数确保该函数确实退出。我在其中一个主题中使用了面包屑Plus:
<?php
if (function_exists(\'breadcrumbs_plus\'))
{
$breadcrumb_options = array(
\'prefix\' => \'<div id="breadcrumb">\',
\'suffix\' => \'</div>\',
\'title\' => \'Du er her: \',
\'home\' => \'Forside\',
\'sep\' => \'/\',
\'front_page\' => false,
\'bold\' => false,
\'blog\' => __(\'Blog\', \'rev\'),
\'echo\' => true
);
breadcrumbs_plus($breadcrumb_options);
}
?>