Home › Forum › Plugin e temi di WP › Plugin conteggio numero parole prima della pubblicazione
-
AutorePost
-
-
12 Marzo 2016 alle 22:37 #30697dad0tratt0Partecipante
Buonasera,
mi servirebbe un plugin che non consenta la pubblicazione di articoli inferiori a un certo numero di parole, avete qualcosa da suggerirmi?
-
14 Marzo 2016 alle 10:34 #120066
-
14 Marzo 2016 alle 10:45 #120067elmaniseroPartecipante
-
14 Marzo 2016 alle 10:54 #120070
-
14 Marzo 2016 alle 11:15 #120072dad0tratt0Partecipante
Impostato in questo modo: Impostazioni
Ma non va… anche se le regole non vengono rispettate, il post viene inviato ugualmente. Cosa sbaglio?
-
14 Marzo 2016 alle 11:54 #120074
-
15 Marzo 2016 alle 9:27 #120078dad0tratt0Partecipante
https://wordpress.org/support/plugin/front-end-publishing
L’ho impostato come da immagine presente qualche post più su, ma nonostante le regole non vengano rispettate, viene mostrato si l’avviso, ma l’articolo va comunque online.
-
15 Marzo 2016 alle 11:19 #120080TittiModeratore
Per beneficio del dubbio ho scaricato e provato il plugin ora, e funziona. Il post non è inviato alla revisione né pubblicato se non rispetta i parametri, ma ovviamente dipende da cosa hai messo in “role settings”. Quindi sicuramente non l’hai configurato correttamente secondo ciò che ti aspetti.
Dall’inutile immagine che hai allegato non si vede come hai configurato il resto, peraltro di facile comprensione.
Il link che ti ho messo e che hai ignorato è al loro supporto: rivolgiti lଠse sei sicuro di averlo configurato giusto.
-
15 Marzo 2016 alle 13:12 #120083dad0tratt0Partecipante
Per beneficio del dubbio ho scaricato e provato il plugin ora, e funziona. Il post non è inviato alla revisione né pubblicato se non rispetta i parametri, ma ovviamente dipende da cosa hai messo in “role settings”. Quindi sicuramente non l’hai configurato correttamente secondo ciò che ti aspetti.
Dall’inutile immagine che hai allegato non si vede come hai configurato il resto, peraltro di facile comprensione.
Il link che ti ho messo e che hai ignorato è al loro supporto: rivolgiti lଠse sei sicuro di averlo configurato giusto.
Innanzitutto grazie per la risposta! Nel frattempo, ho risolto tramite questo snippet:
function minWord($data){
if (current_user_can('editor')) {
$num = 150; //set this to the minimum number of words
if (str_word_count($data) < $num) {
$data = 'draft';
}
}
return $data;
}
add_action('wp_insert_post_data','minWord');
Il problema è solo uno adesso, e chiedo aiuto a voi, visto che di PHP capisco poco, utilizzando altre piattaforme.
Il codice funziona bene, mettendo in bozze gli articoli che non rispettano i criteri, ma vorrei mostrare un avviso per comunicare il "problema". Ho visto questo codice:
wp_die( __('Error: your post is below the minimum word count.') );
Il problema è: come integrarlo nel mio? -
16 Marzo 2016 alle 9:35 #120093dad0tratt0Partecipante
Per beneficio del dubbio ho scaricato e provato il plugin ora, e funziona. Il post non è inviato alla revisione né pubblicato se non rispetta i parametri, ma ovviamente dipende da cosa hai messo in “role settings”. Quindi sicuramente non l’hai configurato correttamente secondo ciò che ti aspetti.
Dall’inutile immagine che hai allegato non si vede come hai configurato il resto, peraltro di facile comprensione.
Il link che ti ho messo e che hai ignorato è al loro supporto: rivolgiti lଠse sei sicuro di averlo configurato giusto.
Sto impazzendo con questo plugin. Una curiosità : te l’hai semplicemente attivato e impostato i limiti nel conteggio o inserito qualche tag nel sito per il suo funzionamento?
-
16 Marzo 2016 alle 12:13 #120094TittiModeratore
Impazzire addirittura, ma leggere le istruzioni no eh?
Eppure il link te l’ho dato.
Il plugin permette la scrittura di articoli dal frontend: [fep_submission_form] per avere il form.
L’altro shortcode è per avere la lista degli articoli.
Nell’unica, semplice pagina di configurazione configuri le impostazioni secondo le tue esigenze (scorri fino in fondo).
Non so cos’altro non ti torna.
-
17 Marzo 2016 alle 9:41 #120118dad0tratt0Partecipante
Impazzire addirittura, ma leggere le istruzioni no eh?
Eppure il link te l’ho dato.
Il plugin permette la scrittura di articoli dal frontend: [fep_submission_form] per avere il form.
L’altro shortcode è per avere la lista degli articoli.
Nell’unica, semplice pagina di configurazione configuri le impostazioni secondo le tue esigenze (scorri fino in fondo).
Non so cos’altro non ti torna.
Il mio dubbio era relativo unicamente allo shortcode, e, più precisamente, sul relativo obbligo di utilizzarlo, ecco cosa non mi tornava.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.