in coupon theme, in header search all coupon categrories not coming?

WordPress Business Themes Forums Responsive Themes Coupon Theme in coupon theme, in header search all coupon categrories not coming?

in coupon theme, in header search all coupon categrories not coming?

July 29, 2016
 rekha

  • rekha
    Newbie 2 points

    visit my website couponmoz.com. if you see in header search there are three option All coupons, all stores and search.
    in all categories only 4 categories coming because of in child theme ‘function code.php’ is static
    this is the code
    <form action=”<?php echo get_home_url(); ?>/” method=”get” class=”nsearch hidden-sm hidden-xs”>

    <div class=”row clearfix”>
    <div class=”col-md-4″>
    <select class=”form-control f1″ name=”stype”>
    <option value=”” <?php if(isset($_GET[‘stype’])){ selected( $_GET[‘stype’], “” );} ?>><?php echo $CORE->_e(array(‘coupons’,’48’)); ?></option>
    <option value=”1″ <?php if(isset($_GET[‘stype’])){ selected( $_GET[‘stype’], 1 );} ?>><?php echo $CORE->_e(array(‘coupons’,’9′)); ?></option>
    <option value=”2″ <?php if(isset($_GET[‘stype’])){ selected( $_GET[‘stype’], 2 );} ?>><?php echo $CORE->_e(array(‘coupons’,’10’)); ?></option>
    <option value=”3″ <?php if(isset($_GET[‘stype’])){ selected( $_GET[‘stype’], 3 );} ?>><?php echo $CORE->_e(array(‘coupons’,’11’)); ?></option>
    </select>
    </div>

    but i want the categories will come automatic from coupon categories so please suggest me what i do?

    July 29, 2016 at 12:31 pm
  • Josh
    Josh
    Super Guru 13,887 points

    Hello Rekha,
    You can add a new dropdown for the categories.Try the below code

    
    <select name="cat1" class="">
                <option value=""><?php echo $CORE->_e(array('button','31')); ?></option>
    					<?php echo $CORE->CategoryList(array(0,false,0,'listing')); ?>
    				</select>
    
    July 29, 2016 at 4:07 pm
    This reply was awarded the best answer by the topic poster.

  • rekha
    Newbie 2 points

    Thanks Josh
    this is solved my issue

    August 3, 2016 at 5:54 am
  • Josh
    Josh
    Super Guru 13,887 points

    You’re welcome Rekha.Have a great day :)

    August 3, 2016 at 12:46 pm

  • Sandeep
    Newbie 5 points

    Hi josh where should i place that code? i too want that feature

    Thanks

    November 17, 2017 at 7:51 pm
Viewing 5 posts - 1 through 5 (of 5 total)

Didn't find what you were after?

Chat with us now

or contact our support team