Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • how to show the jobs at front end by category wise.pls help

    • This reply was modified 9 years, 6 months ago by honey3.
    Thread Starter honey3

    (@honey3)

    register_taxonomy(‘durations’, array(‘packages’), array(‘hierarchical’ => true,’has_archive’ => true,’public’ => true, ‘label’ => ‘durations’, ‘query_var’ => true, ‘rewrite’ => array(‘slug’ => ‘durations’) ) );

    register_taxonomy(‘prices’, array(‘packages’), array(‘hierarchical’ => true, ‘has_archive’ => true,’public’ => true,’label’ => ‘prices’, ‘query_var’ => true, ‘rewrite’ => array(‘slug’ => ‘prices’) ) );

    is this right?

    not working

    Thread Starter honey3

    (@honey3)

    pls tell me other than this file ,i need to code for prices & duration elsewhere

    and
    how to set it archieve and public

    i used
    ‘public’ => true,

    Thread Starter honey3

    (@honey3)

    <?php
    function theme_taxonomy() {
    register_taxonomy(‘tour-type’, array(‘packages’), array(‘hierarchical’ => true, ‘label’ => ‘Tour Type’, ‘query_var’ => true, ‘rewrite’ => array(‘slug’ => ‘tour-type’) ) );
    register_taxonomy(‘tour-category’, array(‘packages’), array(‘hierarchical’ => true, ‘label’ => ‘Tour Category’, ‘query_var’ => true, ‘rewrite’ => array(‘slug’ => ‘tour-category’) ) );
    register_taxonomy(‘destination’, array(‘packages’), array(‘hierarchical’ => true, ‘label’ => ‘Tour Destinations’, ‘query_var’ => true, ‘rewrite’ => array(‘slug’ => ‘travel-destinations’) ) );
    register_taxonomy(‘tour-features’, array(‘packages’), array(‘hierarchical’ => true, ‘label’ => ‘Tour Features’, ‘query_var’ => true, ‘rewrite’ => array(‘slug’ => ‘tour-feature’) ) );
    register_taxonomy(‘tour_settings’, array(‘packages’), array(‘hierarchical’ => true, ‘label’ => ‘Package Type’, ‘query_var’ => true, ‘rewrite’ => array(‘slug’ => ‘tour-settings’) ) );

    register_taxonomy(‘hotel_facilities’, array(‘hotels’), array(‘hierarchical’ => true, ‘label’ => ‘Facilities’, ‘query_var’ => true, ‘rewrite’ => array(‘slug’ => ‘hotel-facilities’) ) );

    register_taxonomy(‘hotel_accomodation’, array(‘hotels’), array(‘hierarchical’ => true, ‘label’ => ‘Accomodation Type’, ‘query_var’ => true, ‘rewrite’ => array(‘slug’ => ‘accomodation-type’) ) );
    register_taxonomy(‘hotel_category’, array(‘hotels’), array(‘hierarchical’ => true, ‘label’ => ‘Hotel Category’, ‘query_var’ => true, ‘rewrite’ => array(‘slug’ => ‘hotel-category’)));

    register_taxonomy(‘durations’, array(‘packages’), array(‘hierarchical’ => true, ‘label’ => ‘durations’, ‘query_var’ => true, ‘rewrite’ => array(‘slug’ => ‘durations’) ) );

    register_taxonomy(‘prices’, array(‘packages’), array(‘hierarchical’ => true, ‘label’ => ‘prices’, ‘query_var’ => true, ‘rewrite’ => array(‘slug’ => ‘prices’) ) );
    }
    add_action( ‘init’, ‘theme_taxonomy’ );

    ?>

    the last two taxonomy i added

Viewing 4 replies - 1 through 4 (of 4 total)