Archived topic
Inserting PHP not working
3 replies · Started by Samuel on October 31, 2020
Hello, I'm trying to use the Visual Portfolio plugin to customise a post gallery. To do so, the plugin propose to insert a PHP function in the documentation :
add_filter( 'vpf_extend_tiles', 'my_filter_vpf_extend_tiles' );
function my_filter_vpf_extend_tiles( $tiles ) {
return array_merge( $tiles, array(
array(
'value' => '6|1,1|1,1|1,1|1,1|2,1|2,1|',
),
) );
}
I add it to my function.php file and try to use it playing with different values, but it doesn't work, nothing happen frontend.
Would you have any clue why the function is not working ?
Hi there,
It's a filter from the plugin so we wouldn't know it works.
Have you checked with their support?
Ok, thanks
No problem :)