小编use*_*614的帖子

Wordpress自定义帖子类型不会显示在管理员左侧边栏菜单中

我的一个自定义帖子类型没有显示在左侧边栏管理菜单中,我有一个奇怪的问题.

我声明了5个自定义帖子类型,但第五个没有显示在左侧菜单中.这里是没有显示的客户端帖子类型.我对此进行了很多搜索,没有成功.

非常感谢你的帮助 !

    /**
 * Custom Posts Types
 */

add_action('init', 'create_team_post_type');
function create_team_post_type() {
    register_post_type( 'phil_team',
        array(
            'labels' => array(
                'name' => __('Équipe'),
                'singular_name' => __('Individu'),
                'add_new' => __('Ajouter'),
                'add_new_item' => __('Ajouter un individu'),
                'view_item' => __('Voir individu'),
                'edit_item' => __('Modifier individu'),
                'search_items' => __('Rechercher un individu'),
                'not_found' => __('Individu non trouvé'),
                'not_found_in_trash' => __('Individu non trouvé dans la corbeille')
            ),
            'public' => true,
            'hierarchical' => false,
            'menu_position' => 21,
            'rewrite' => array('slug' => 'team'),
            'supports' => array('title', 'editor', …
Run Code Online (Sandbox Code Playgroud)

wordpress custom-post-type

15
推荐指数
3
解决办法
2万
查看次数

使用extract-text-webpack-plugin使SCSS源图在Webpack 2中工作?

我开始配置我的第一个Webpack v2任务管理器.这是我第一次使用Webpack.

我正在使用extract-text-webpack-plugin来拥有一个外部CSS文件.

我的问题是我不知道如何为我的SCSS文件设置源图.

有人有解决方案吗?

非常感谢!


这是我的Webpack.config.js文件:

var webpack = require('webpack');
var autoprefixer = require('autoprefixer');
var BrowserSyncPlugin = require('browser-sync-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var WebpackBuildNotifierPlugin = require('webpack-build-notifier');
var path = require('path');

module.exports = {
  entry: './src/app.js',
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'app.bundle.js'
  },
  module: {
    rules: [
      {
        test: /\.scss$/,
        use: ExtractTextPlugin.extract({
          fallback: 'style-loader',
          use: ['css-loader','postcss-loader','sass-loader'],
          publicPath: '/dist',
        })
      }
    ]
  },
  devtool: 'source-map',
  plugins: [
    new HtmlWebpackPlugin({
      title: 'Project Demo',
      minify: {
        collapseWhitespace: false …
Run Code Online (Sandbox Code Playgroud)

source-maps webpack webpack-2

0
推荐指数
1
解决办法
2126
查看次数