[Resolved] Inserting PHP not working

Home Forums Support Inserting PHP not working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1512449
    Samuel

    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 ?

    #1512620
    Leo
    Staff
    Customer Support

    Hi there,

    It’s a filter from the plugin so we wouldn’t know it works.

    Have you checked with their support?

    #1518603
    Samuel

    Ok, thanks

    #1519323
    Leo
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.