English 中文(简体)
添加一条用于抗灭虫的切片
原标题:Adding a Custom Page Template into Warp Theme for bbPress

(这一职位是在洋eme论坛上提出的,但我对解决办法没有信心,因此我认为我也在这里担任这一职务。)

我用了来自日美的纳主题,在我的90%的网站上做了大量工作。 rel=“nofollow”http://dofekit.org 然而,我刚刚安装了纸张论坛(不是现场,而是当地版),我建立了2个论坛。 论坛索引网页和所有分页似乎都列入标准纳米页模板。 该论坛并不合适,因为它包括一页信息,而且我也认为,正如我的屏幕显示的那样,没有办法使论坛偏离旁边。

http://dl.dropbox.com/u/240752/forums.jpg

是否在 y框架内为论坛员额类型建立一个单独的模板? (我知道这种所有权,但我可以要求)

感谢。

<><>UPDATE:

我是其中一部分。 我恳请为我这样的论坛职位类型单独制作模板,但我仍需要获得在植被环境中承认的习俗员额类型。

I ve在warp/systems/wordpress3.0/layouts/content.php上添加了习惯员额类型。

if (is_home()) {
    $content =  index ;
} elseif (is_page()) {
    $content =  page ;
} elseif (is_attachment()) {
    $content =  attachment ;
} elseif ((is_single()) && (get_post_type() ==  forum )) {
    $content =  forum-single ;
}elseif ((is_single()) && (get_post_type() ==  topic )) {
    $content =  topic-single ;
} elseif (is_single()) {
    $content =  single ;
} elseif (is_search()) {
    $content =  search ;
}elseif ((is_archive()) && (get_post_type() ==  forum )) {
    $content =  forum-archive ;
} elseif (is_archive() && is_author()) {
    $content =  author ;
} elseif (is_archive()) {
    $content =  archive ;
} elseif (is_404()) {
    $content =  404 ;
}

I ve also added these custom post types into warp/systems/wordpress3.0/config/layouts/fields/profile.php in an effort to get them to appear in the dropdown lists on each widget. (I want to be able to toggle widgets on these new custom templates.)

$defaults = array(
     home     =>  Home ,
     archive  =>  Archive ,
     search   =>  Search ,
     single   =>  Single ,
     page     =>  Pages ,
     forum-archive  =>  Forum List ,
     forum-single  =>  Forum Single ,
     topic-single  =>  Topic Single 
);

谁能提供帮助? 我认为,我几乎没有这样做。

最佳回答

You should be able to handle this using a WordPress Template for your custom post type for single post display.

例如,如果您的习俗员额类型被称为“产品”,就会产生一个称为单一产品的模式。 php e.g. 单-{post_type}.php

这一解决办法应不论环日美框架如何运作。 让我知道,这是否奏效!

问题回答

i m 如果我的回答能够帮助你,则不会sh。

我的法典在植被状况中添加了生物分类。

I edit the file warp/systems/wordpress/config/layouts/fields/et.php

并且我对每个习俗的分类=

// set Eventos cate
    if ($categories = get_categories(array( hide_empty  => 0,  name  =>  select_name ,  post_type  =>  event ,  taxonomy   =>  event-category ))) {
        $options[] =  <optgroup label="Eventos | Categorias"> ;

        foreach ($categories as $category) {
            $val        =  cat- .$category->cat_ID;
            $attributes = in_array($val, $selected) ? array( value  => $val,  selected  =>  selected ) : array( value  => $val);
            $options[]  = sprintf( <option %s />%s</option> , $control->attributes($attributes), $category->cat_name);
        }

        $options[] =  </optgroup> ;                  
    }

这里,我的说法是:“event”/strong>,我的分类是“event- category”,列在植被状况清单中,你现在可以看到所有分类或术语以及标签“Eventos Categorias”更好地识别。

Ok this is only one part of the code and maybe you can take this like a point to start. Now i just can display and list this terms but still nok working :(

so... tnks for the comments and sorry for my english :P





相关问题
jQuery - ScrollTo and Serial Scroll not working together

I have tested the scrollTo() plugin, but I need a way to stop the scrolling animation, so I am looking at serialScroll(). Here is what I used with scrollTo: $( #scroller ).scrollTo( 1000px , 3000); ...

jQuery deconstructors for plugins?

I m using the Galleria plugin inside an Accordion plugin to display images in a super cool way. A problem occurs, however, when I open up a new tab (in the accordion) then come back to the gallery tab....

XPCOM Security issues

I m developing a Firefox plugin using XPCOM, I ve not yet read all the docs, but as far as I can see, A plugin is simply a DLL that provides services via a XPCOM interface and interacts with the ...

Ruby on Rails plugin development process

I m considering developing aspects of a website as Rails plugins for reuse. My question is about the development process. Since each of these plugins will provide a "slice" of functionality, should ...

help mongrel wont start

I have decided to switch from Restful authentication to authlogic.. so what I did was delete every file and folder that got installed when I downloaded the plugin.. now when I try to "ruby script/...

Basic MEF workflow/usage

I m looking to a framework which will allow me to have a simple plugin system in my .NET application. It seems MEF is the framework which Microsoft is endorsing, and will become part of .NET 4 (it ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

java plugin cache and dynamic IP host

I m trying to use Amazon S3 and Amazon Cloudfront CDN to deliver the jar files of my applet application. I m seeing several cache misses of my jars by the java plugin. This is a show-stopper for me, ...