Loops
Hallo Morris,
vielen dank schonmal für deine Antwort.
Ich weiß nicht ob das hier das ist was du suchst:
Index.php im rootverzeichnis:
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
?>
Alles anzeigen
Index.php in wp-content/themes/gallery
<?php
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; }
else { $$value['id'] = get_settings( $value['id'] ); }
}
?>
<?php get_header() ?>
<div id="container">
<div id="content">
<div id="nav-above" class="navigation">
<?php if(function_exists('wp_pagenavi')) { ?>
<?php wp_pagenavi(); ?>
<?php } else { ?>
<div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">«</span> Older posts', 'thematic')) ?></div>
<div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">»</span>', 'thematic')) ?></div>
<?php } ?>
</div>
<?php get_sidebar('index-top') ?>
<?php /* Count the number of posts so we can insert a widgetized area */ $count = 1 ?>
<?php while ( have_posts() ) : the_post() ?>
<div id="post-<?php the_ID() ?>" class="<?php thematic_post_class() ?>">
<div class="entry-content">
<?php childtheme_post_header() ?>
<a href="<?php echo the_permalink() ?>"><span class="slide-title"><?php echo the_title(); ?></span>
<img class="thumbnail" src="<?php if(get_post_meta($post->ID, 'thumbnail', $single = true)){echo get_post_meta($post->ID, 'thumbnail', $single = true);} else{bloginfo('url'); echo "/wp-content/themes/gallery/images/thumbnail-default.jpg";} ?>" width="125" height="125" alt="<?php echo the_title() ?>" /></a>
</div>
</div><!-- .post -->
<?php comments_template() ?>
<?php if ($count==$thm_insert_position) { ?><?php get_sidebar('index-insert') ?><?php } ?>
<?php $count = $count + 1; ?>
<?php endwhile ?>
<?php get_sidebar('index-bottom') ?>
<div id="nav-below" class="navigation">
<?php if(function_exists('wp_pagenavi')) { ?>
<?php wp_pagenavi(); ?>
<?php } else { ?>
<div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">«</span> Older posts', 'thematic')) ?></div>
<div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">»</span>', 'thematic')) ?></div>
<?php } ?>
</div>
</div><!-- #content -->
<div class="myadvertisment"><?php include('advertisment.php'); ?></div>
</div><!-- #container -->
<?php thematic_sidebar() ?>
<?php get_footer() ?>
Alles anzeigen
Ich weiß leider nicht an was ich genau diesen Loop erkennen soll.
Was das heißt weiß ich dank der Wiki^^ aber wies genau aussieht.
danke und gruß