facetwp link all in layout builder

djrmom

{{gist file=”custom-hooks.php” lang=”php”}}
<?php
/** adds a link to the post link for every item in your layout, if using don’t include the links also in the item
** settings **/
add_filter( ‘facetwp_builder_item_value’, function( $value, $item ) {
return ‘<a href=”‘ . get_permalink() . ‘”>’ . $value . ‘</a>’;
}, 10, 2 );
{{/gist}}