Edit the orderby arg with chid theme functions.php
-
Hello,
This plugin is great. Thank you for your great work!
I have added an option with an Advanced Custom Field to the $orderby array and it seems to work perfectly:
$orderby = strtolower( (string) $orderby ); if ( !in_array( $orderby, array( 'post_date', 'post_modified', get_field('show_event_start_date') ) ) ) { $orderby = 'post_date'; }
I feel silly that I can’t figure this out, but how would I implement this through my child theme functions instead of editing the plugin functions?
Thank you in advance for the help.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Edit the orderby arg with chid theme functions.php’ is closed to new replies.