首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > PHP > p2-theme-page-template

p2-theme-page-template

  • 资源大小:1.85 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

Attempt to use the wordpress P2 Theme as a Page Template with a Custom Post Type This is a work in progress. You can see it working at http://www.humbug.in/mblog/ (its NOT a demo page). Check out the source code using the below command into your theme directory cd THEME_DIRECTORYsvn checkout http://p2-theme-page-template.googlecode.com/svn/trunk/ p2 Add `require_once( BIRDBRAIN_DIR . "/p2/p2-bridge.php" );` at the bottom of your theme"s function.php Open up the p2-bridge.php file and edit the following variables according to your blog settings $p2_custom_post_type = "aside"; //Custom Post Type Identifier$p2_custom_post_type_name = "Asides"; //Custom Post Type Plural Name$p2_custom_post_type_singular_name = "Aside"; //Custom Post Type Singular Name$p2_custom_post_type_page_slug = "mblog"; //Page Slug where you want to display the P2 Blog p2-blog.php

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP