This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
nikolark 969c63c752 New style wordpress
This enables automagic updates of WP

- Delete wordpress install
- Move theme(s) to top
- Move local plugins to ./plugins
- Simplify i18n
2017-07-05 01:03:17 +02:00

36 lines
1004 B
PHP
Executable File

<?php get_header(); ?>
<div id="content" class="container_12">
<?php while ( have_posts()) : the_post(); ?>
<div class="grid_12"><h1><?php the_title(); ?></h1></div>
<div class="grid_12"><?php the_content(); ?></div>
<?php
$args = array(
'post_type' => 'association',
'posts_per_page' => 50,
);
$associations = new WP_Query( $args );
if ( $associations->have_posts() ) : ?>
<div id="associations" class="grid_12">
<div class="association-row">
<?php while ( $associations->have_posts() ) : $associations->the_post();
if ( $associations->current_post%4==0 && $associations->current_post != 0)
echo '</div><div class="association-row">'; ?>
<div class="association">
<a href="<?php the_permalink(); ?>"><?php echo has_post_thumbnail() ? get_the_post_thumbnail( $post->ID, 'association-thumb' ) : "<h2>".$post->post_title."</h2>"; ?></a>
</div>
<?php endwhile; ?>
</div>
</div>
<?php endif; ?>
<?php endwhile; // The loop ?>
</div> <!-- #content -->
<?php get_footer(); ?>