What i would like to do;
if there is one post in custom post type, it should show up in one full column of bootstrap.
| post |
If there are two posts, they should show up in two half column (one-half).
| post | post |
If there are three posts, the should show up in three third columns (one-third).
|post|post|post|
And then it starts again from beginning.
|post|post|post|
| post |
I thought, i can use count_post function, but its not working as i expect.
For rows im using elements from this post:
Posts in Multiple Columns and Rows with one single loop
This post was not really helpfull: Set div columns in a loop by post count
Any ideas? Thanks.