我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何为wordpress自定义帖子只选择一个类别?

I am trying to select only one category for each custom post . I have used "Only One Category" plugin . But it is also working on general post. I only need that only for custom post . Please tell me how can i do that?

you can create pages for each post type categories and display it each page

like archive-{post_type}.php

you cam view this page

click here

You can control what to show in the post editor better with http://wordpress.org/plugins/radio-buttons-for-taxonomies/ .Works for both categories and tags.

近期文章

  • 来自外部URL的特色图片无法正常工作
  • _redirect仍然继续执行php代码
  • 变量不工作的存储过程
  • 在wordpress仪表板上编辑主题字符串变量
  • 一个更好的短代码[关闭]
  • Yii在订单中获得特定帖子
  • 动作引擎的结构
  • 使用JOIN链接表
  • PHP中的Pushover API错误发送消息
  • Yii验证模型规则不起作用
  • 在PHP中将字符串拆分为多个部分
  • 在wordpress查询中遇到相对路径问题
  • 如何在iOS应用中保存用户头像
  • 单击网站(php)上的按钮后如何弹出java jar文件?
  • 在免费的Heroku上运行连续的PHP应用程序
  • 向用户配置文件添加详细信息(将登录用户和当前gig插入新表的查询)
  • 使用自定义字段查询自定义帖子类型,并按自定义分类法升序
  • 多对多并形成Symfony2
  • 孩子的孩子作为链接&缩略图
  • 未定义索引:登录时(php)[重复]

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华