Advertisement:

Author Topic: Sory By "Custom Fields"  (Read 558 times)

dcrouch.mdc@gmail.com

  • Newbie
  • *
  • Posts: 2
Sory By "Custom Fields"
« on: June 01, 2016, 12:28:51 am »
I have several "custom fields" (added from the Admin control panel).

They all have been added to the loop-single.php file to show in the listing pages using the following code:
<?php $cf_origin = 'Origin'; ?><?php echo $cf_origin  . ": " . cust_get_custom_field_value($cf_origin); ?>

This works great and gets me the result I want. I now need to be able to "Sort by" these "custom fields"

I see the code for the class="see_by" in the search.php file which controls the sort; I just do not know how to go about coding to get it to sort by the cf_ tags that I have created.

Anyone ??? HELP?? Will pay for help!!
« Last Edit: June 13, 2016, 08:59:34 pm by dcrouch.mdc@gmail.com »