Support

Account

Home Forums Front-end Issues Count field selection in a WP Query Reply To: Count field selection in a WP Query

  • Hi @jarvis,

    Thanks, that’s amazing!

    Just wondering now in the foreach loop how I add my select fields – for example;

    <select name="sort_price" id="sort_price">
    	<option value="" selected disabled>Select...</option>
    	<option value="">All</option>
    	<option value="5000">Up to £5000 (<?php echo $count; ?>)</option>
    	<option value="6000">Up to £6000 (<?php echo $count; ?>)</option>
    	<option value="7000">Up to £7000 (<?php echo $count; ?>)</option>
    	<option value="8000">Up to £8000 (<?php echo $count; ?>)</option>
    	<option value="9000">Up to £9000 (<?php echo $count; ?>)</option>
    	<option value="10000">Up to £10,000 (<?php echo $count; ?>)</option>
    </select>