Forums › Forums › Search & Filter Pro › Use meta field for taxonomy value display
Tagged: Co-Authors Plus, post meta, taxonomy
- This topic has 36 replies, 6 voices, and was last updated 6 years, 9 months ago by Anonymous.
-
Anonymous(Private) January 22, 2018 at 11:44 am #153828
It doesn’t appear in the list if I comment the line.
It appears only if I declare a label for the dropdown title (list item with value=””)I think the problem here lies in the ordering part of the function. The dropdown title should be given a 0 value and left out from the array of values reordered, in this way it sould always show up at the top of the list.
But I dont’t know how to write the code to do this (should it be feasible).
Anonymous(Private) January 22, 2018 at 3:11 pm #153926Got it.
$orderby = "label"; /* Replace array_multisort with asort + array_unshift to put the "display all" item on top + asort */ /* array_multisort($sortArray[$orderby],SORT_ASC,$input_object['options']); */ asort($sortArray[$orderby],SORT_ASC); array_unshift($sortArray[$orderby], "Tutti gli Autori"); asort($input_object['options']);
-
AuthorPosts