Use "between" in [loop] numerically, not alphabetically
-
Hi again,
once again, I have a problem with a custom field using Types. This time, I have created a numerical field called “wpcf-segments”.
Now, I want to print out every object with a segment count between 1 and 5. So I do…
[loop taxonomy=category term=object relation=and field=wpcf-segments compare=between value=1,5 orderBy=field_num key=wpcf-segments order=ASC] ... insert insane output ... [/loop]
… but this also shows 10, 16, 22, … etc. because they are in between 1 and 5 alphabetically. Is there some way to handle these field values numerically? Just like
orderBy=field_num
does, which is working perfectly.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Use "between" in [loop] numerically, not alphabetically’ is closed to new replies.