change code to random sort
-
Hi
plz
I want to change the code<div class="properties-filter-sort-by-wrapper"> <select class="form-control" name="filter-sort-by"> <option value=""><?php echo __( 'Sort by', 'realia' ); ?></option> <option value="price" <?php if ( ! empty( $_GET['filter-sort-by'] ) && 'price' == $_GET['filter-sort-by'] ) : ?>selected="selected"<?php endif; ?>><?php echo __( 'Price', 'realia' ); ?></option> <option value="title" <?php if ( ! empty( $_GET['filter-sort-by'] ) && 'title' == $_GET['filter-sort-by'] ) : ?>selected="selected"<?php endif; ?>><?php echo __( 'Title', 'realia' ); ?></option> <option value="published" <?php if ( ! empty( $_GET['filter-sort-by'] ) && 'published' == $_GET['filter-sort-by'] ) : ?>selected="selected"<?php endif; ?>><?php echo __( 'Published', 'realia' ); ?></option> </select> </div><!-- /.filter-sort-by-wrapper -->And replace by defalut to random and if possible to hide (Sorting options and Order)
tanks to all
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘change code to random sort’ is closed to new replies.