Add shortcode attribute for include_children
-
Would it be possible to include a dg shortcode attribute for include_children to be passed through to the taxonomy parameters gereneration for the WP Query?
For the project I’m currently working on I’ve had to hack the plugin adding this line within the DGGallery->setTaxa() function to acheive this:
$taxa[] = array( 'taxonomy' => $taxon, 'field' => 'id', 'include_children' => false, 'terms' => $terms, 'operator' => isset( $operator[ $taxon ] ) ? $operator[ $taxon ] : 'IN' );
Thanks!
John
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Add shortcode attribute for include_children’ is closed to new replies.