Ich habe nun die Zeile
query_posts( array ( 'category_name' => 'The Category Name', 'posts_per_page' => 5 ) );
in die index.php eingefügt.
Demnach sieht diese nun so aus (für 5 Beiträge auf der Startseite):
<?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');
query_posts( array ( 'category_name' => 'The Category Name', 'posts_per_page' => 5 ) );
?>
Alles anzeigen
Leider wird auf der Startseite immer noch die Anzahl an Beiträgen aus dem Standardwert angezeigt.
Was ist falsch?