我正在尝试将html页面转换为wordpress,但我遇到了一些问题。
我添加到gallery并尝试在页面上显示的图像不会出现不会显示幻灯片Note:如果我使用wp默认主题,如214,则会出现上面的主题。
我尝试过使用默认库,wp filebase 插件和jssor slider 插件
在我的会议简介页面中,我有一个简短的代码
[jssorslider id=1]
我的页面显示如下:
我的职能。php页面如下:
<?php
if ( ! function_exists( \'masterpiece_setup\' ) ) :
function masterpiece_setup() {
/*
* Make theme available for translation.
* Translations can be filed in the /languages/ directory.
*/
load_theme_textdomain( \'masterpiece\', get_template_directory() . \'/languages\' );
// Add default posts and comments RSS feed links to head.
add_theme_support( \'automatic-feed-links\' );
/*
* Let WordPress manage the document title.
*/
add_theme_support( \'title-tag\' );
add_theme_support( \'html5\', array(
\'search-form\', \'comment-form\', \'comment-list\', \'gallery\', \'caption\'
) );
add_theme_support( \'post-formats\', array(
\'aside\', \'image\', \'video\', \'quote\', \'link\', \'gallery\', \'status\', \'audio\', \'chat\'
) );
// Add menus.
register_nav_menus( array( \'primary\' => __( \'Primary Menu\', \'masterpiece\' )) );
add_theme_support( \'post-thumbnails\' );
set_post_thumbnail_size( 320, 320 );
add_image_size(\'about\',300,240,true);
add_image_size(\'Investment\',400,300,true);
}
endif; // masterpiece_setup
add_action( \'after_setup_theme\', \'masterpiece_setup\' );
if ( ! function_exists( \'masterpiece_init\' ) ) :
function masterpiece_init() {
register_post_type(\'investment_item\', array(
\'labels\' =>
array(
\'name\' => __( \'Investment items\' ),
\'singular_name\' => __( \'Investment item\' )
),
\'public\' => true,
\'supports\' => array( \'title\', \'editor\', \'author\', \'thumbnail\', \'excerpt\', \'trackbacks\', \'custom-fields\', \'comments\', \'revisions\', \'page-attributes\', \'post-formats\' )
));
register_post_type(\'download_item\', array(
\'labels\' =>
array(
\'name\' => __( \'Download items\' ),
\'singular_name\' => __( \'Download item\' )
),
\'public\' => true,
\'supports\' => array( \'title\', \'editor\', \'author\', \'thumbnail\', \'excerpt\', \'trackbacks\', \'custom-fields\', \'comments\', \'revisions\', \'page-attributes\', \'post-formats\' )
));
}
endif; // masterpiece_setup
add_action( \'init\', \'masterpiece_init\' );
if ( ! function_exists( \'masterpiece_widgets_init\' ) ) :
function masterpiece_widgets_init() {
register_sidebar( array(
\'name\' => \'Footer Links\',
\'id\' =>\'footer-sidebar-1\',
\'before_widget\' => \'<div class="row">\',
\'after_widget\' => \'</div>\',
\'before_title\' => \'<h4 style="color:#d5a253;text-align:center">\',
\'after_title\' => \'</h4>\',
) );
register_sidebar( array(
\'name\' => \'Downloads\',
\'id\' =>\'downloads\',
\'before_widget\' => \'<div class="row align-center">\',
\'after_widget\' => \'</div>\',
\'before_title\' => \'<div class="col-md-2">\',
\'after_title\' => \'</div>\',
) );
/* Pinegrow generated Register Sidebars Begin */
/* Pinegrow generated Register Sidebars End */
}
add_action( \'widgets_init\', \'masterpiece_widgets_init\' );
endif;// masterpiece_widgets_init
if ( ! function_exists( \'masterpiece_enqueue_scripts\' ) ) :
function masterpiece_enqueue_scripts() {
/* Pinegrow generated Enqueue Scripts Begin */
wp_deregister_script( \'jquery\' );
wp_enqueue_script( \'jquery\', get_template_directory_uri() . \'/assets/js/jquery-1.11.0.min.js\', false, null, true);
wp_deregister_script( \'jqueryui\' );
wp_enqueue_script( \'jqueryui\', get_template_directory_uri() . \'/assets/js/jquery-ui-1.10.4.min.js\', false, null, true);
wp_deregister_script( \'timecircles\' );
wp_enqueue_script( \'timecircles\', get_template_directory_uri() . \'/assets/js/TimeCircles.js\', false, null, true);
wp_deregister_script( \'venobox\' );
wp_enqueue_script( \'venobox\', get_template_directory_uri() . \'/assets/js/venobox.js\', false, null, true);
wp_deregister_style( \'styles\' );
wp_enqueue_style( \'styles\', get_template_directory_uri() . \'/assets/css/styles.css\', false, null, \'all\');
wp_deregister_style( \'queries\' );
wp_enqueue_style( \'queries\', get_template_directory_uri() . \'/assets/css/queries.css\', false, null, \'all\');
/* Pinegrow generated Enqueue Styles End */
}
add_action( \'wp_enqueue_scripts\', \'masterpiece_enqueue_scripts\' );
endif;
require_once "inc\\bootstrap\\wp_bootstrap_navwalker.php";
?>