Risposte nei forum create
-
AutorePost
-
NappaPartecipante
Ciao!
GRAZIE, ma è già il codice che uso per visualizzare gli attach nel tema… il problema è che la versione 3.5.x non fa più gli attach, non allega più i file (jpg, doc, pdf) al POST
NappaPartecipanteCiao,
se hai hosting su Aruba, la soluzione è sempre la stessa.
Il link è direttamente in home page di questo forum
14 Febbraio 2013 alle 13:05 in risposta a: Vi prego aiutatemi! Si è verificato un errore durante il caricamento, riprovare #101299NappaPartecipanteNappaPartecipanteCiao!
Ho spostato l’installazione da una sottocartella alla root su server Aruba.
Alla fine non visualizzavo più le immagini.
SOLUZIONE: all’interno di “wp-content”, ho creato una cartella “rinominare”, ci ho spostato dentro tutto il contenuto della cartella “uploads”, ho buttato “uploads” e rinominato “rinominare” in “uploads”. Funziona tutto perfettamente senza toccare permessi e altro.
Spero sia utile.
Ciao
NappaPartecipanteHolà !
in effetti il problema è proprio quello…
facevo un echo dalla funzione, adesso faccio un return e funziona perfettamente…
Grazie 1000
posto il codice:
// [CUSTOM GALLERY]
function cusgall_func() {
global $post;
$size = ‘thumb-galleria’;
$limit = ‘0’;
$offset = ‘0’;
$images = get_children( array(‘post_parent’ => $post->ID, ‘post_status’ =>
‘inherit’, ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’, ‘order’ => ‘ASC’,
‘orderby’ => ‘menu_order ID’) );
if ($images) {
$num_of_images = count($images);
if ($offset > 0) : $start = $offset–; else : $start = 0; endif;
if ($limit > 0) : $stop = $limit+$start; else : $stop = $num_of_images;
endif;
$galleria = “<div class=’gallery’>”;
foreach ($images as $image) {
$img_title = $image->post_title; // title.
$img_description = $image->post_content; // description.
$img_caption = $image->post_excerpt; // caption.
$img_url = wp_get_attachment_url($image->ID); // url of the full size image.
$preview_array = image_downsize( $image->ID, $size );
$img_preview = $preview_array[0]; // thumbnail or medium image to use for preview.
///////////////////////////////////////////////////////////
// This is where you’d create your custom image/link/whatever tag using the variables above.
// This is an example of a basic image tag using this method.
};
$galleria = $galleria.”</div>”;
};
return $galleria;
}
add_shortcode(‘customgallery’, ‘cusgall_func’);
NappaPartecipanteciao!..
hai accesso al Database tramite PHPmyAdmin o pannelli del genere?
puoi entrare nel DB e modificarla
NappaPartecipante…ah ok…
soluzione 1:
Sei l’unica amministratrice del sito?
nelle opzioni di voto, puoi indicare chi può votare… puoi lasciare solo REGISTERED user, quindi votare solo tu.
soluzione 2:
Devi essere un po’ sgamata col codice PHP, ma puoi inserire un custom value all’interno del post che abbia come valori, ad esempio 1 – 1,5 – 2 – 2,5.. etc etc, leggerlo dalla pagina con il php e mostrare tante stelline quanto è il valore che hai inserito.
NappaPartecipanteCiao Marzia,
io uso questo: WP-PostRating
lo puoi vedere ad esempio in questo sito che ho fatto:
E’ molto semplice, senza troppi fronzoli…
l’unico problema è che devi inserire del codice nella pagina PHP, nel single.php, page.php e nei loop
Ciao
Nap
NappaPartecipantetrovato questo post su WP.org
http://wordpress.org/support/topic/how-to-query-a-post-using-post-id-from-a-specific-post_type
NappaPartecipante…quindi tu suggerisci di fare una query per ogni post ID?… ci provo
grazie
-
AutorePost