Home › Forum › Problemi Vari con WP › escludere post di sottocategorie
-
AutorePost
-
-
17 Ottobre 2009 alle 17:11 #11866MassimoVitaliPartecipante
Ciao a tutti, grazie per la visione.. Il mio problema consiste nel fatto che: dopo esser riuscito ad escludere i post di certe categorie nella home.. ora vorrei fare la stessa cosa con le categorie.. ho meglio quando clicco su la categoria principale X mi si apre un pagina con visualizzati i post delle sottocategorie..io vorrei escludere i post di queste magari lasciando solo i post della categoria principale X.
nel mio tema non c’è un file category.php quindi non so come agire.
mi chiedevo inoltre se è possibile creare una pagina o categoria che visualizzi post a tutto schermo, o meglio che la loro estensione vada un estremo all’altro dopo aver escluso la sidebar.
grazie ancora.. Attendo una vostra risposta.. GRAZIE.
se vi puo essere utile il sito è fotomontagni com
-
18 Ottobre 2009 alle 17:54 #68860ondapiPartecipante
se non esiste category.php per effetto della gerarchia del template questa pagina viene sostituita dall’index
per escludere delle categorie devi intervenire nel loop
magari forse mi sfugge qualcosa perchè non ricordo bene il loop in questione
ma che serve avere una sottocategoria se poi non fai vedere i post?
l’elenco delle categorie che compare nella barra laterale è dato dal file sidebar, quindi magari tu ti danni sul codice dei post ma il link ti appare tranquillamente
nulla ti vieta di creare un category.php e personalizzarlo a piacere, cosଠcome un single.php per avere i post a tutta pagina o un template di pagina diverso, un po’ come avviene nel tema default di wp
-
18 Ottobre 2009 alle 20:19 #68862MassimoVitaliPartecipante
grazie ondapi per la risposta.. hai provato a cliccare sulla categoria “fotogallery garfagnana”? se vedi dopo vengono mostrati i post anche delle subcategories.. io vorrei che questi non ci fossero ma che fossero solo presenti nella sottocategoria..
per farti capire meglio dopo aver cliccato su “fotogallery garfagnana” c’è post postato nella sottocategoria “camporgiano”, vorrei che questo post non camparisse li ma solo dopo aver cliccato nella sottocategoria già mensionata.
come posso fare?
non riesco a trovare il loop.. ecco il file index.php
[CODICE NON RICHIESTO ELIMINATO COME DA POLICY DEL FORUM, SE PROPRIO SMANIATE DI MOSTRARE IL VOSTRO CODICE UTILIZZATE SERVIZI TIPO PASTEBIN E QUI METTETE SOLO UN LINK.
IL LOOP LO TROVI DESCRITTO NEL WIKI.]
per quanto riguarda la creazione dei file category.php e single.php vedro come fare.. è possibile pero un intervento diretto su i file single.php e category.php già esistenti per portare la visualizzazione di determinati articoli o categorie a schermo intero?
GRAZIE PER GLI AIUTI!!!!!!!!!!!
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.