• Where do you add custom filters to the post grid?
    I am using this plugin together with Advanced Custom Fields plugin but I can’t seem to display a custom field in the grid.
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author PickPlugins

    (@pickplugins)

    Please check here the documentation for post grid,

    https://pickplugins.com/docs/documentation/post-grid/

    Can you please tell me what you are planning to do so i can recommend the filter hook you are looking for.

    Regards

    Thread Starter umzzzzz

    (@umzzzzz)

    Hi PickPlugins! Thanks for the quick reply. I am trying to display in a page a custom field named “birthdate”. As I understand, you will want to add that custom field in the Layout editor by using this code:

    function post_grid_filter_layout_items_extra($layout_items){
      
        $layout_items['title_new'] = array(    
                                            'name'=>'Tile New',
                                            'dummy_html'=>'New Title',
                                            'css'=>'display: block;font-size: 13px;line-height: normal;padding: 5px 10px;text-align: left;',
                                                    
                                         );
    
        return $layout_items;                            
                        
      }
    
    add_filter('post_grid_filter_layout_items','post_grid_filter_layout_items_extra');

    …I tried pasting this in functions.php but I can’t seem to make it work.

    Also, I would like to ask if the the Layout editor settings can’t be different in two or more grids? I am asking because I have lots of grids in my page and if I edit one grid layout, it applies to all grids. Does it really work that way? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Post Grid – Where to add filters’ is closed to new replies.