Stranissimo, ma avuto un problema del genere.
Qual è la versione di WP da te usata?
Il codice php abbianto a quel testo è questo, magari voi riuscite a capire qualcosa:
* ---------------------------------------------------------------------------
* Excerpt length
* --------------------------------------------------------------------------- */
function mfn_excerpt_length( $length ) {
return 26;
}
add_filter( 'excerpt_length', 'mfn_excerpt_length', 999 );
/* ---------------------------------------------------------------------------
* Excerpt
* --------------------------------------------------------------------------- */
function mfn_excerpt($post, $length = 55, $tags_to_keep = '<a><b><strong>', $extra = ' [...]') {
if(is_int($post)) {
$post = get_post($post);
} elseif(!is_object($post)) {
return false;
}
if(has_excerpt($post->ID)) {
$the_excerpt = $post->post_excerpt;
return apply_filters('the_content', $the_excerpt);
} else {
$the_excerpt = $post->post_content;
}
$the_excerpt = strip_shortcodes(strip_tags($the_excerpt, $tags_to_keep));
$the_excerpt = preg_split('/\b/', $the_excerpt, $length * 2+1);
$excerpt_waste = array_pop($the_excerpt);
$the_excerpt = implode($the_excerpt);
if( $excerpt_waste ) $the_excerpt .= $extra;
return apply_filters('the_content', $the_excerpt);
}
i css invece:
/* Details */
.project_info { margin-bottom: 20px; }
ul.project_details {}
ul.project_details li { overflow: hidden; margin-bottom: 5px; background: rgba(0, 0, 0, 0.2); -webkit-border-radius: 3px; border-radius: 3px; }
ul.project_details li .label { width: 20%; display: block; float: left; border-right: 1px solid rgba(255, 255, 255, .05); padding: 6px 2%; }
ul.project_details li p { width: 71%; display: block; float: left; margin-bottom: 0;padding: 6px 2%; }
ul.project_details li p i { margin-right: 6px; }
Scusami, ma cos'è il codice che hai postato?
Non stiamo parlando dell'editor testuale dei post e pagine presente nell'amministrazione?
si esatto... ma ho copiato il codice php riferito a quel campo di testo, magari c'è qualcosa di forzato lì..
sto diventando matta![]()
Quindi fammi capire, tu stai inserendo il codice PHP dentro l'editor di post/pagina di Wordpress?
no, il testo normale l'ho inserito all'interno dell'editor in wordpress.
Ora, siccome non ne vado fuori, sto controllando il codice in php e i css.
Ho contattato lo sviluppatore del tema, vediamo cosa risponderà...
Scusami ma non ti seguo:
1) stiamo parlando dell'editor di post/pagine? Questo?
2) che template stai usando? Anche se il template non ha neanche a vedere...