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>
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.