Hi!
Danke erstmal für den Tip. Ich habe jetzt mal in meinen beiden index.php (die im Grundverzeichnis und die im Themes-Verzeichnis) nachgeschaut ob ich da so ein Loop finde. Scheinbar ist dem aber nicht so. Hier ist mal die index.php aus dem Grundverzeichnis:
<?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
und hier die aus dem modularity-lite-Verzeichnis:
?php
/**
* @package WordPress
* @subpackage Modularity
*/
?>
<?php get_header(); ?>
<?php if ( is_home() && ! is_paged() ) : /* Show the welcome box and slideshow only on first page. Makes for better pagination. */ ?>
<?php
$options = get_option( 'modularity_theme_options' );
if ( $options['welcome_content'] != '' ) :
?>
<div class="welcomebox entry">
<?php if ( $options['welcome_title'] != '' ) echo '<p>' . stripslashes( $options['welcome_title'] ) . '</p>' ?>
<div id="welcome-content"><?php echo stripslashes( $options['welcome_content'] ); ?></div>
</div><!--end welcome-box-->
<?php endif; ?>
<?php if ( $options['slideshow'] != 0 ) : ?>
<div id="slideshow">
<?php
// Start a new query that looks at all the posts on the home page.
$mod_slide = new WP_Query();
$mod_slide->query( 'order=DESC&caller_get_posts=1' );
while ($mod_slide->have_posts()) : $mod_slide->the_post();
// Check to see if the posts have attachments.
$attachments = get_children(array('post_parent' => get_the_ID(), 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order'));
if ( empty( $attachments ) )
continue;
// Set our attachment variable.
$first_attachment = '';
// Awesome! We have attachments! Let's grab the first one that's 950px x 425px.
foreach ( $attachments as $attachment ) {
$image = wp_get_attachment_image_src( $attachment->ID, 'modularity-slideshow' );
if ( $image[1] >= 950 && $image[2] >= 425 ) {
$first_attachment = $attachment;
break;
}
}
// Cool. Now, if we actually have an attachment, let's pop it into our slideshow.
if ( $first_attachment != '' ) { ?>
<div class="slide"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php echo wp_get_attachment_image($first_attachment->ID, 'modularity-slideshow' ); ?></a></div>
<?php }
endwhile;
?>
</div><!-- end slideshow -->
<?php endif; ?>
<?php endif; /* End Better Pagination */ ?>
Alles anzeigen
Das verwendete Theme ist auf jeden Fall ein kostenloses Theme. Habe ich über die WordPress-Suche (bei der Auswahlmöglichkeit des Themes) gefunden.
Ich habe auch noch nicht ganz verstanden, welche Datei nun für die Hausptseite verantwortlich ist. Normalerweise gibt es in html ja glaube ich nen Frame und dann die entsprechenden Seiten in einzelnen Dateien. Da könnte man jetzt einfach in der Hauptseite nach dem Code suchen und ihn entfernen. Bei diesem php habe ich über die Seiten allerdings keinen Durchblick mehr.
Ich schaue mal in den anderen Dateien nach dem Loop, aber da gibt es natürlich recht viele im Stammverzeichnis...
Fällt dir noch irgendwas ein? :)
[Edit: Ok, ich habe grad gesehen, dass in der zweiten index.php innerhalb der Slideshow solch eine Loop drin stecken könnte. Werde die mal probehalber löschen...]