Skip to main content
added 14 characters in body
Source Link
Tom J Nowell
  • 60.6k
  • 7
  • 77
  • 147

Trying to get this table to sort by default by "publish_date" Where can I adadd it?

$transaction_params = array(
                          'posts_per_page' => $page_size,
                          'post_type' => 'realadv_transaction',
                          'post_status' => 'publish',
                          'exclude' => $used_transactions,
                          'suppress_filters' => false,
                          'tax_query' => array(
                            array(
                              'taxonomy' => 'realadv_transaction_type',
                              'field' => 'term_id',
                              'terms' => $group['transaction_groups_types']->term_id,
    $transaction_params = array(
                              'posts_per_page' => $page_size,
                              'post_type' => 'realadv_transaction',
                              'post_status' => 'publish',
                              'exclude' => $used_transactions,
                              'suppress_filters' => false,
                              'tax_query' => array(
                                array(
                                  'taxonomy' => 'realadv_transaction_type',
                                  'field' => 'term_id',
                                  'terms' => $group['transaction_groups_types']->term_id,

Trying to get this table to sort by default by "publish_date" Where can I ad it?

$transaction_params = array(
                          'posts_per_page' => $page_size,
                          'post_type' => 'realadv_transaction',
                          'post_status' => 'publish',
                          'exclude' => $used_transactions,
                          'suppress_filters' => false,
                          'tax_query' => array(
                            array(
                              'taxonomy' => 'realadv_transaction_type',
                              'field' => 'term_id',
                              'terms' => $group['transaction_groups_types']->term_id,

Trying to get this table to sort by default by "publish_date" Where can I add it?

    $transaction_params = array(
                              'posts_per_page' => $page_size,
                              'post_type' => 'realadv_transaction',
                              'post_status' => 'publish',
                              'exclude' => $used_transactions,
                              'suppress_filters' => false,
                              'tax_query' => array(
                                array(
                                  'taxonomy' => 'realadv_transaction_type',
                                  'field' => 'term_id',
                                  'terms' => $group['transaction_groups_types']->term_id,
Source Link

Sorting table function default

Trying to get this table to sort by default by "publish_date" Where can I ad it?

$transaction_params = array(
                          'posts_per_page' => $page_size,
                          'post_type' => 'realadv_transaction',
                          'post_status' => 'publish',
                          'exclude' => $used_transactions,
                          'suppress_filters' => false,
                          'tax_query' => array(
                            array(
                              'taxonomy' => 'realadv_transaction_type',
                              'field' => 'term_id',
                              'terms' => $group['transaction_groups_types']->term_id,