普通网友 2011-01-26 09:19
浏览 60

需要澄清自定义帖子类型

I'm working on the custom post-types. Once i added the post types i can able to post the data. Custom post types are done by using the CMS-PRESS. After i posted the particular custom post - type post i'm not able to see the post in the wordpress post list in front-end. And same like it's not coming under the buddypress too. How i can make this affect in all the places same like the normal post ?? and is it possible to make a theme based on the post type?? Could any one can help me on this??

  • 写回答

2条回答 默认 最新

  • douna1895 2011-01-27 12:14
    关注

    I think you might have misunderstood the purpose of custom post types.

    It's probably more helpful to think of them as custom 'entities' rather than custom 'posts'. Examples of custom entities could be 'Cars', 'Courses', 'Locations' or almost anything else you could put on a web site.

    Once you start thinking that way, you see how WordPress needs some help knowing how to display those entities. Some custom entities may be added regularly; others may remain unchanged for months or years. Some may be small in number; other may need to be displayed in a complex hierarchy or through a search.

    That's why they are kept separate from your blog, in the same way that pages are.

    However, if custom 'posts' are the right thing for you to use, there are some great resources on the wordpress site for developing or modifying your theme to design them in. There is also a neat shortcut, in the 'Get Posts' plugin. You can find it in the normal add-ons directory.

    Hope this sets you in the right direction :-)

    评论

报告相同问题?

悬赏问题

  • ¥15 R语言Rstudio突然无法启动
  • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
  • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值