Home › Forum › Problemi Vari con WP › Widget calendario eventi con data dell'evento e non dell'articolo
-
AutorePost
-
-
28 Ottobre 2013 alle 8:56 #25801robertinoPartecipante
Salve a tutti,
fino ad oggi ho usato il seguente widget per la visualizzazione del mio calendario di eventi.
Cosଠcome altri widget, esso mostra la data in cui l’articolo è stato reso pubblico sul sito.
Io invece vorrei pubblicare oggi un articolo per un evento che inizierà ad esempio giorno 1 dicembre, quindi sul calendario dovrà essere evidenziato giorno 1 dicembre e non la data odierna.
Sapreste indicarmi un widget che possa avvicinarsi alla mia necessità ?
Grazie.
-
28 Ottobre 2013 alle 13:48 #107258
-
28 Ottobre 2013 alle 14:22 #107265robertinoPartecipante
elmanisero, se l’avessi trovato non avrei postato, fidati.
A me serve un widget e non un plugin.
Come ho già scritto, tutti i plugin/widget prendono come data di riferimento quella di pubblicazione del post, mentre nel mio caso vorrei pubblicare un post mesi prima per un eventi che accadra ad una data XX.
Vorrei che nel mio widget si facesse riferimento a quella data XX e non a quella di pubblicazione del post.
-
28 Ottobre 2013 alle 15:02 #107266elmaniseroPartecipante
A me serve un widget e non un plugin.
Non sai di cosa parli, non hai guardato quel link e fatto una ricerca nel codex dei plugins.
In uno dei miei siti uso questo e anche se non è più supportato funziona a meraviglia, fa quello che dici tu ed è un plugin che si mostra in un widget ma ce ne sono anche altri aggiornati che fanno la stessa cosa.
-
28 Ottobre 2013 alle 16:49 #107283robertinoPartecipante
Scusami, non voglio essere una perdita di tempo, pensavo che ci fosse una distinzione netta tra plugin e widget (in fase di ricerca dico!).
Proverò quello da te indiciato, grazie.
-
29 Ottobre 2013 alle 12:01 #107308robertinoPartecipante
Sto utilizzando WordPress 3.6 e se provo ad effettuare l’installazione mi restituisce il seguente errore:
Il pacchetto non può essere installato. Non sono stati trovati plugin validi.
Installazione del plugin non riuscita.
-
29 Ottobre 2013 alle 13:36 #107314elmaniseroPartecipante
Non so che dirti più di quanto già detto, io i plugin li carico via ftp e quello lo uso con la 3.6.1 e mi funziona, provane altri aggiornati come questo MA RIPETO con una ricerca ne trovi anche degli altri
-
29 Ottobre 2013 alle 14:34 #107316robertinoPartecipante
Ah ecco, allora effetto l’upload via FTP e vi aggiorno!
Grazie
-
30 Ottobre 2013 alle 13:26 #107335
-
30 Ottobre 2013 alle 13:40 #107336elmaniseroPartecipante
Si può creare l’evento nel calendario, volendo si può creare l’articolo collegato o con articolo già fatto creare l’evento nel calendario.
Plugin elementare che non avrebbe bisogno di istruzioni.
Io non ho la pazienza di Titti che ha avuto nello spiegarti come si usa nextgen gallery.
Se non lo riesci a capire RIPETO PER LA TERZA VOLTA installati un’altro.
-
30 Ottobre 2013 alle 13:53 #107338robertinoPartecipante
Non capisco perchè tutta quest’arroganza e difficoltà nel rispondere.
Si tratta di un forum, si chiedono informazioni, perchè rispondere cosà¬?
Se rispondere rappresenza un problema, non rispondere direttamente, si fa prima!
Ho installato il PLUGIN, se creo un evento, non c’è assolutamente la possibilità di includere automaticamente un POST in quanto viene chiesto un titolo, una data, un’ora e una descrizione (ova la massimo è possibile inserire un link ad un articolo!).
La mia domanda riguarda la possibilità di scrivere un articolo ed inserirlo nel calendario, ma ovviamente con la data dell’evento che sia diversa dalla data di pubblicazione del post.
Grazie.
-
30 Ottobre 2013 alle 15:31 #107348elmaniseroPartecipante
Non capisco perchè tutta quest’arroganza e difficoltà nel rispondere.
Ti ho risposto senza nessuna difficoltà e arroganza, prima ti ho fatto la ricerca su google, trovati più di uno, detto quale uso io, poi ti ho spiegato come installarlo, ti ripetuto più volte che ce ne sono degli altri se questo non ti andava bene o non eri in grado.
Ti lamenti del mio tono, ma invece di cercare una alternativa o di guardare nel supporto del plugin continui a ripetere la stessa domanda convinto che non si possa associare un post ad un evento per cui ora ti devo spiegare come si setta, non ti sembra di essere un filino insistente?
Salvare l’evento, entrarci per modificarlo, aggiungere id post e salvare.
-
30 Novembre 2013 alle 14:56 #108154robertinoPartecipante
Soluzione trovata, ho usato la combinazione di due plugin:
– Calendar Category (http://wordpress.org/plugins/calendar-category/)
– No future Posts (http://wordpress.org/plugins/no-future-posts/)
Il primo mi permette di visualizzare in un Widget con Calendario i Posts di una categoria.
Il secondo mi permette di rendere pubblici anche i Posts con una data futura rispetto a quella attuale.
E’ stato effettuato il seguente HACK nel primo plugin (come segnalato da un altro utente):
// Get days with posts
$sql = "SELECT DISTINCT DAYOFMONTH(post_date)
FROM $wpdb->posts " . calcat_maybe_single_category_joins( $category ) . "WHERE MONTH(post_date) = '$thismonth'
AND YEAR(post_date) = '$thisyear'" . calcat_maybe_single_category_cat( $category ) . "
AND post_type = 'post' AND post_status = 'publish'
AND post_date < '" . current_time( 'mysql' ) . ''';
a
$sql = "SELECT DISTINCT DAYOFMONTH(post_date)
FROM $wpdb->posts " . calcat_maybe_single_category_joins( $category ) . "WHERE MONTH(post_date) = '$thismonth'
AND YEAR(post_date) = '$thisyear'" . calcat_maybe_single_category_cat( $category ) . "
AND post_type = 'post' AND post_status = 'publish'";
(è stata rimossa l’ultima riga!).
Adesso sul calendario sono presenti anche i POSTS con data futura.
Risolto.
Grazie comunque!
-
3 Settembre 2016 alle 8:56 #120793mas-wp-01Partecipante
Salve robertino io ho lo stesso tuo probblema e sono daccordo con te se siamo costretti a fare interventi nei forum è perchè ad oggi giorno di plug-in ce ne sono troppi e la maggior parte di questi a mio avviso non dovrebbero nemmeno essere pubblicati altrimenti si creano solo dei plug-in(doppioni).
Sono daccordo con te anche nel fatto di ricevere delle risposte non troppo d’ aiuto da parte del forum.
Volevo sapere questa è la tua soluzione finale?Non ci sono altri metodi o il nome di un plug-in calendario che fa tutto questo grazie?
Fai o fate sapere grazie ok?
-
3 Settembre 2016 alle 9:36 #120794mas-wp-01Partecipante
Il codice del plu-in che hai messo mi sembra non vada più bene in quanto l’ho provato ma sembra essere differente. C’e’ qualcuno che può aggiornare il codice per cortesia?
Si può aggiungere del codice sul calendario di default di wp invece di integrare un plug-in?
In tutti i plug-in calendario ho visto che si può creare degli eventi futuri ma io e robertino vogliamo che si visualizzino in automatico attraverso i post senza ricrearli nel calendario manualmente.
Come si fà ?
-
3 Settembre 2016 alle 15:31 #120797TittiModeratore
– Non ci si accoda ad un topic di qualcun altro per un proprio problema, inoltre metti chi vorrebbe aiutarti nella condizione di dover leggere tutto il precedente
– Non si riapre un topic vecchio di due anni
Sei hai una domanda da fare nel forum, apri un tuo nuovo topic con il tuo problema.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.