WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Problem with theme archive page... (1 post)

  1. TataVostru
    Member
    Posted 2 years ago #

    Hy im building a cinema website with wordpress...

    I have a big problem... the Trailers dont work anymore... the theme...

    The site : #

    In trailer section the theme don't work... the theme is not loading
    Link : #

    In Gene category the theme works, i want to display something like this in Trailers Category...
    Link : #

    In my fuctions .php i have

    register_post_type('trailers', array(	'label' => 'Trailers','description' => '','public' => true,'show_ui' => false,'show_in_menu' => true,'capability_type' => 'post','hierarchical' => false,
    'rewrite' => array('slug' => ''),
    'query_var' => true,'has_archive' => true,
    'menu_position' => 5,'supports' => array('title','editor','custom-fields',),
    'labels' => array (
      'name' => 'Trailers',
      'singular_name' => 'Trailer',
      'menu_name' => 'Trailers',
      'add_new' => 'Add Trailer',
      'add_new_item' => 'Add New Trailer',
      'edit' => 'Edit',
      'edit_item' => 'Edit Trailer',
      'new_item' => 'New Trailer',
      'view' => 'View Trailer',
      'view_item' => 'View Trailer',
      'search_items' => 'Search Trailers',
      'not_found' => 'No Trailers Found',
      'not_found_in_trash' => 'No Trailers Found in Trash',
      'parent' => 'Parent Trailer',
    ),) );
    
    register_taxonomy("trailer","trailers", array("hierarchical" => true, "label" => "Categorie", 'show_ui' => true, 'query_var' => true, "singular_label" => "trailer", "rewrite" => true , 'with_front' => true));

    In theme folder i have...

    archive-trailers.php
    taxonomy-trailer.php

    All have

    <?php
    /*
    Template Name: Archives Trailers
    */
    ?>

    Thath shoud load...

    Anny sugestion for corecting this error please...

Topic Closed

This topic has been closed to new replies.

About this Topic