小编Ale*_*vic的帖子

WPML和自定义帖子类型归档模板

我在WordPress 3.8.1中使用WPML 3.0.2-a

我有一个像这样定义的自定义帖子类型:

function add_custom_posts(){
    $args = array(
            'labels' => array(
                    'name' => __( 'Showcases' ),
                    'singular_name' => __( 'Showcases' ),
                    'add_new_item' => __( 'Add New Showcase'),
                    'edit_item' => __( 'Edit Showcases' ),
                    'view_item' => __( 'View Showcase' ),
                    'search_items' => __( 'Search Showcases' ),
                    'not_found' => __( 'No Showcases found.' ),
                    'not_found_in_trash' => __( 'No Showcases found in Trash.' )
            ),
            'public' => true,
            'has_archive' => 'case-studies',
            'menu_position' => 5,
            'taxonomies' => array('post_tag'),
            'supports' => array( 'title', 'thumbnail', …
Run Code Online (Sandbox Code Playgroud)

php wordpress custom-post-type wpml

13
推荐指数
2
解决办法
2875
查看次数

标签 统计

custom-post-type ×1

php ×1

wordpress ×1

wpml ×1