Risposte nei forum create
-
AutorePost
-
ArturoPartecipante
wordpress e’ bello perche’ flessibile, oltre che fatto bene!
una cosa da fare per iniziare e’ leggerti nel WIKI dissezione di un thema, in modo da capire come utilizzare la grafica del sito trasformandola in un theme per WP.
una volta fatto questo, con wp e un po’ di buona volonta’ puoi fare tutto, basta che t’informi sulle varie funzioni che hai a disposizione ed il wiki e’ pieno di info utili e poi ti metti a lavoro.
il tuo progetto e’ fattibile, ma devi avere un po’ di basi per fare il tutto con wp.
ArturoPartecipanteho dimenticato…
(“cat=289&showposts=3”);
lo devi personalizzare con l’ID della categoria che vuoi utilizzare, nell’esempio l’ID e’ 289 e il numero dei post che vuoi che escano 3, 4, 5 oppure cancelli da & e lasci solo cat=ID per mostrare tutti i post di quella data categoria.
ArturoPartecipanteAllora ci sono alcuni passaggi da fare, te li illustro:
1- Apri un editor, crei una pagina bianca con estensione .php, tipo PaginaCat1.php
2- in questa pagina inserirai la parte di codice che ti incollo di seguito e da dove c’e’ il commento che ti dice di inserire le tue classi css lo fai in modo da utilizzare in modo corretto la grafica del tuo blog
il codice e’ il seguente:
<?php
/*
Template Name: Pagina Categoria 1
*/
?>
<?php get_header(); ?>
<!– da qui devi inserire le tue classi per richiamare la grafica –>
<?php $recent = new WP_Query(“cat=289&showposts=3”); while($recent->have_posts()) : $recent->the_post();?>
<h2>< a href=”<?php the_permalink() ?>” rel=”bookmark”><?php the_title(); ?></ a></h2>
<?php the_content(“Continua a leggere »”); ?>
<?php endwhile; ?>
<?php get_footer(); ?>
togli gli spazi a < a href… ed </ a>
3- puoi personalizzare il nome del template della pagina al posto di Pagina Categoria 1, metti quello che piu’ ti piace e si addice di piu’ al tipo di pagina
4- salvi il tutto e carichi con un client FTP la pagina nella cartella del tuo theme dove si trovano le altre pagine .php (header.php, index.php, footer.php ecc)
5- accedi a WP, vai nella sezione SCRIVI -> PAGINA, metti un titolo alla pagina scendi piu’ in basso e troverai tra i vari campi TEMPLATE PAGINA selezioni il template da te appena caricato via ftp e fai pubblica
6- hai finito ogni modifica da effettuare alla pagina fallo direttamente non usare l’editor di WP o sballerai tutto!
Enjoy!
ArturoPartecipanteci sono alcuni plugin che forse potrebbero fare a caso tuo, devi darti un occhio QUI magari non ti servono ma non ti costa nulla!
ArturoPartecipantehai cambiato /home/UTENTE/… Utente con il tuo nomeutente?
failed to open stream: HTTP wrapper does not support writeable connections
NON devi mettere l’url ma la path relativa cioe’
/ilvendramin/public_html/wp-content/plugins/cforms/attachments
prova cosi’ e fammi sapere…
ArturoPartecipantequale dovrebbe essere il percorso della cartella upload?
di default mi da che tra l’altro esiste gia’:
/home/utente/public_html/wp-content/plugins/cforms/attachments
e dice che questa cartella o qualsiasi altra che vai a specificare DEVE gia’ esistere, quindi la devi creare tu manualmente nel caso NON esista!
poi imposti le ext. dei file accettati e la dimensione massima. salvi e dovrebbe essere tutto a posto.
puoi fare una prova dando i permessi di scrittura a quella data cartella giusto per vedere se l’errore e’ perche’ non riesce a caricare i file.
il problema dovrebbe essere proprio quello perche’ ti dice che non riesce a trovare tale file
http://www.my_site.xxx.xx/wp-content/plugins/cforms/attachments/noid-apple.jpg
che dovrebbe essere il file allegato con il messaggio.
ArturoPartecipanteil loop di wp parte con
<?php while (have_posts()) : the_post(); ?>
tu lo richiami due volte, apri il loop, ci metti la parte di codice di YAPB per far uscire l’immagine, ci metti il codice di WP per far uscire il testo e tutto quello che ne consegue, chiudi il loop.
ora come YAPB richiami l’immagine non lo so’ di preciso, ma dovrebbe essere cosi’, per far uscire un solo articolo devi impostarlo nel backend di wp, e comunque una volta impostato il loop in modo corretto, al massimo visualizzerai il numero di post massimi per pagina ma tutti diversi non solo lo stesso ripetuto n volte.
ArturoPartecipantecforms alcune volte fa le bizze se wp non e’ installato nella root del sito, ti dovrebbe dare una sorta di avviso nella pagina di configurazione, con precisione:
Pare che la tua ROOT principale di WordPress sia /pathdiWP. cforms provvederà ad auto-impostarsi comunque, se riscontrassi dei problemi con Ajax (modulo & ripristino CAPTCHA) apri il file js/cforms.js nella cartella del plugin di cforms e verifica la variabile sajax_uri. (Dopo avere cambiato il file, ricordati di svuotare la cache del tuo browser!)
ora qui parla solo del captcha, ma non vorrei che magari fa lo stesso con l’upload dei file, che io non utilizzo, prova a vedere magari e’ questo o magari no, tentar non nuoce… qualcuno ti sapra’ dire di meglio sicuramente!
p.s. assicurati comunque che noid-apple.jpg e lib_nonajax.php siano stati caricati correttamente tramite ftp sul server.
ArturoPartecipanteah capisco, ok allora fa’ niente, comunque ora capisco perche’ sia col feed di FB che quello nativo di WP non riesco a far funzionare il widget mentre con il feed del mio blog funziona bene…
ad ogni modo a me su safari mi legge bene entrambi i feed, magari c’e’ qualcosa di nascosto come per la questione download…
cya!
ArturoPartecipantewolly ma io non ho capito… l’esempio era per me? hai provato il widget? funzia? mi so’ perso nei messaggi…
-
AutorePost