// FILTER ONLY NON-EMPTY ENTRIES {% set searchQuery = craft.app.request.queryParam('q') %} {% if searchQuery == '' %} {% set searchResults = [] %} {% else%} {% set searchResults = craft.entries() .section('articles') .type('article') .issue(':notempty:')⬅️⬅️⬅️ .search(searchQuery) .orderBy('score') .cache() .all() %} {% endif %}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter