Skip to content

Commit

Permalink
Merge pull request #14 from barn2plugins/shortcode-atts-prefix
Browse files Browse the repository at this point in the history
Add ept prefix to the sort_by shortcode attribute
  • Loading branch information
amirition authored Jun 5, 2024
2 parents dd7215a + 95dac91 commit 7be9353
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Integration/Barn2_Table_Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ public function shortcode_atts( $out, $pairs, $atts, $shortcode ) {
}
}

$out['sort_by'] = $this->prefix_taxs_and_fields( $out['sort_by'], $post_type );
$out['sort_by'] = substr( $out['sort_by'], 0, strrpos( $out['sort_by'], ':' ) );

return $out;
}

Expand Down

0 comments on commit 7be9353

Please sign in to comment.