如何爲WP做ENABLING FUNCTION的技術支持介紹,希望對朋友們有點幫助!
- <?php
- /* ------------------------------------- */
- /* ENABLING FUNCTION SUPPORT */
- /* ------------------------------------- */
- if (function_exists('add_theme_support')){
- add_theme_support( 'post-thumbnails');
- }
- if (function_exists('add_theme_support')) {
- add_theme_support('menus');
- }
- if ( function_exists('automatic-feed-links')) {
- add_theme_support( 'automatic-feed-links');
- }
- remove_action ('wp_head', 'rsd_link');
- remove_action ('wp_head', 'wlwmanifest_link');
- remove_action ('wp_head', 'wp_generator');
- the_post_thumbnail();
- the_tags();
- ?>