Feature
Be able to include/exclude specific rows from a post's grid call.
Exemple as the main display function parameter :
get_laygrid($id, $type,$rows);
My usecase
I am using layGridder for my posts inner content.
On my "archive/home" page, I would like to fetch the first rows of every post listed to be able to have a "rich thumbnail" that use what we love about LayGridder :
easely configurable background color, image, video + foreground image, video, html, text.
To do so I could use something like this :
$rows = array(
"fetch_type" => "include",
"numbers" => array(1)
);
get_laygrid($id,$type,$rows);
This would only fetch the first layGridder row of my posts.
I could even lazyload the content of my post later afterwards, on user action for exemple with ajax and something like
"fetch_type" => "exclude", "numbers" => array(1)"
We could also manually loop through every row to do all sorts of things if we can get the total number of rows from a post :
while( $i < $numberofrows ) {
$rows = array(
"fetch_type" => "include",
"numbers" => array($i)
);
get_laygrid($id,$type,$rows);
i++;
}
Also maybe there is already a way to do any of this. Even less straightforward I would be interested to know about it.