0

Usually I try to figure out things myself, but I'm stuck here and couldn't find a solution for this on the Internet. I try to figure out/know if there is a possibility to have an option in wordpress in which column I want a post ( it's thumbnail ) to be posted in. Let's say I have 5 Columns on the Index site, and I want certain posts only to be posted in Column 1.

The reason I try to do this is to have an more fluent look of the thumbnails. I know Isotope would be an option but since I have fixed widths which causes the order of the thumbnails to be mixed up, I tried to find a different solution.

4

1 に答える 1

1

いくつかのオプションがあります。

  1. 2 つのループ。最初のループは列 1 に入力し、2 番目のループは別の場所に入力します。

  2. 列が順番に入力されている場合、同じループで列 1 を入力し、次に列 2 を入力する可能性があります。

    while (have_posts()) : the_post();
        $column1 = 0
        if ($column1 < 2) {
           //code to populate column 1
        }
        else
           //code to populate column 2
        }
    endwhile
    
于 2012-09-02T13:07:39.060 に答える