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

    (@pickplugins)

    Thanks for your post,

    There is a filter hook for filter query arguments

    post_grid_filter_query_args() so you can add more arguments

    
    function post_grid_filter_query_args($query_args){
    	$new_args = array (
    			'post__in' => array('1','2'), // post ids here
    			);
    	
    	return array_merge($query_args,$new_args);
    	}
    
    add_filter('post_grid_filter_query_args','post_grid_filter_query_args');
    
    

    same way you can add for SKU,

    Although this will effect on your post grid, Our Premium version has feature “More Query Parameter” you can add more query argument from input options. that will work individual post grid.

    Please see the screenshot

    View post on imgur.com

    Also has meta query & Taxonomy & Terms (Categories) selection

    View post on imgur.com

    Let me know for more help.

    Regards

    Thread Starter ValentinaPh88

    (@valentinaph88)

    Thank you very much for your reply. But i think I did sth wrong. I put the code to the query.php and it didn’t add new parameters for the post types.

    Thread Starter ValentinaPh88

    (@valentinaph88)

    Could you please advise on the above.

    Thread Starter ValentinaPh88

    (@valentinaph88)

    Hello. Sorry for disterbing. But i really can’t figure out where i should put the code to make it work.
    Please help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Display definite products’ is closed to new replies.