Risposte nei forum create
-
AutorePost
-
lbottoniPartecipante
si vede che ho la testa in fusione oramai!
basta un semplice
bloginfo(‘url’);echo “?page_id=3”;
Grazie mille
lbottoniPartecipantesi..so che non ho metto il the_content(), ma era solo un esempio per comprenderne la logica. Mi premeva sapere e capire. Adesso è decisamente più chiaro.
Grazie di cuore
il mio SWorld
lbottoniPartecipantegrazie..leggevo, ma mi perdo in un bicchiere d’acqua..esempio, se ho capito bene, basterebbe:
1-creo il file myfile.php e lo salvo nella directory del tema
2-nel file inserisco ad esempio questo codice
<?
/*
Template Name: MioTemplate
*/
?>
<div id=”content”>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
HELLO WORLD!!!!!!
<?php endwhile; else: ?>
<?php _e(‘Sorry, no posts matched your criteria.’); ?>
<?php endif; ?>
</div>
3-poi quando dal pannello di wp creo una pagina, gli associo il template e “MioTemplate”
corretto?
il mio SWorld
lbottoniPartecipanteecco un modo x aggirare l’ostacolo.
nel div presente nella mia index.php del mio tema che dovrà contenere il testo delle pagine ho inserito nel loop un if per indicare che quella pagina specifica deve essere visualizzata con una speciale.
<div id=”content”>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?
if(is_page(“miofile”))
{include (“miofile.php”);}
?>
<?php endwhile; else: ?>
<?php _e(‘Sorry, no posts matched your criteria.’); ?>
<?php endif; ?>
</div>
il tag condizionale is_page() mi permette di passare come argomento il titolo della pagina o anche il suo id.
Magari non è la soluzione corretta, ma è almeno un punto da cui partire.Se avete suggerimento o correzioni, fatemele sapere.
Ciao a tutti.`
il mio SWorld
lbottoniPartecipanteok, ti ringrazio Steve, ma l’aiuto richiesto era pratico e non teorico..quello dei template l’ho letto (ma non capito) per questo mi sono arreso e ho richiesto l’aiuto al forum…grazie lo stesso, cercherò aiuto altrove.
ciao
lbottoniPartecipanteGrazie Steve, ma è da ieri che ci sono in quelle pagine e purtroppo non ho afferrato “il come” fare quello che mi serve…per questo mi sono rivolto al forum…mi puoi fare un esempio specifico del mio caso?
lbottoniPartecipanteok, non avevo fatto aggiorna quando gli ho associato la galleria
lbottoniPartecipantefermi..ho risolto…colpa mia devo dire…prima usavo un’account di prova dell’hosting e il path diceva che ero in:
/opt/app01/httpd/html/10001_1001_www.altrodominio.com_01/html/wp-content/uploads/2008/07.
che equivale al gruppo 1 dei server, poi ho visto che il nuovo spazio web era in gruppo diverso ovvero:
/opt/app02/httpd/html/10001_1001_www.bottonisworld.com_01/html/wp-content/uploads/2008/07.
ma avendo solo aftto la sostituzione del dominio da http://www.altrodominio.com a http://www.bottonisworld.com, non era cambiato il server!..chiaro che non potevo scrivere dove non esisteva nessuno spazio disco!!!
molto fine come problema..ma dopo aver letto il wiki, mi è venuto il dubbio…provato e tutto funziona.
grazie ragazzi per l’aiuto..non sarei riuscito a capire da dove partire senza i vostri suggerimenti.
lbottoniPartecipantesi ho provato a mettere l’immagine in upload via ftp e funziona, solo che poi non viene messa nella “libreria media”
lbottoniPartecipantesi ho provato il reset owner, mi riporta tutto in possesso dell’utente http://ftp.Ma non è cambiato nulla…la differenza da ieri è l’installazione dei plug in.
Sono andato a leggere nella tabella wp_option e noto che in alcuni campi option_value esiste ancora il riferimento al vecchio dominio. Ho notato anche che nella tabella dei post c’è la stessa cosa come riferimento alle immagini uploadate…esiste un modo per dire a wordpress di modificare questi valori?
Ho disattivato i plugin, ma niente..mi dice che non posso scrivere nella cartella, eppure il percorso è corretto e la cartella è in 777…qui c’è il primo caso di droga di hosting!
-
AutorePost