皆さんこんにちは、これを解決しようとして大きな問題が発生しています。JavaScript を使用する必要があることはわかっていますが、その方法がわかりません。これは私のスクリプトです:
<?php
$posts = query_posts('order=DESC&cat=-2');
$cols = 4;
$filas = array_chunk($posts, $cols);
$columnas = array();
foreach( $filas as $row => $articulos ) {
foreach( $articulos as $ix => $articulo ) {
$columnas[$ix] = isset($columnas[$ix]) ? $columnas[$ix] : array();
$columnas[$ix][] = $articulo;
}
}
?>
<?php foreach($columnas as $posts):?> etc, etc ... <?php endforeach; ?>
$cols の値は、ユーザーのウィンドウ画面に応じて変化します。IE = ウィンドウ画面が (何らかの値) の場合、$cols = (何らかの値)
これについて何か助けていただければ幸いです。
乾杯!