Salve ragazzi, sto provando a creare una pagina dove siano visualizzati solo i post di una categoria. Fin qui niente di complicato, ho creato una pagina identica all’index.php ed aggiunto nel loop sotto <?php if (have_posts()) : ?> la stringa <?php query_posts(‘cat=IDCATEGORIA’); ?>
All’inizio ho anche aggiunto <?php /*Template Name: Pagina Categoria */?>. Quindi in Wp-admin ho creato una pagina selezionando a destra il template. Insomma funziona
Ora però vorrei che ad inizio pagina ci sia un post con una descrizione della pagina, es che compaia cosa io ho scritto nella pagina che ho creato in Wp-admin o che semplicemente ci sia un post sticky. Sapete darmi una mano?
Ho provato a dare uno sguardo anche a guide in inglese però senza fortuna.
Grazie buona serata