hey blaui,
was hast das denn nun mit dem bild zu tun ?
ich möchte einfach nur das die beschreibung des artikels auf zb. 50 wörter beschrenkt werden.
momentan mit dem evermore plugin wir nur nach dem ersten absatz gekürzt.
lg
micha
Um schreiben oder kommentieren zu können, benötigen Sie ein Benutzerkonto.
Sie haben schon ein Benutzerkonto? Melden Sie sich hier an.
Jetzt anmeldenHier können Sie ein neues Benutzerkonto erstellen.
Neues Benutzerkonto erstellenhey blaui,
was hast das denn nun mit dem bild zu tun ?
ich möchte einfach nur das die beschreibung des artikels auf zb. 50 wörter beschrenkt werden.
momentan mit dem evermore plugin wir nur nach dem ersten absatz gekürzt.
lg
micha
hallo,
habe es jetzt hinbekommen, vielen dank dir:smile:
kann ich mir auch vor jedem platz der top10 das erste bild im artikel in mini 64x64 anzeigen lassen ?
Hallo,
ich suche jemanden der mir eine kleinigkeit in wordpress verändert.
es handelt sich hierbei um das WP-rating plugin.
wer lust hat bitte PN an mich.
Hallo,
ich würde gerne das Widget WP-Ratings nicht in die Sidebar, sondern in eine Seite einbinden.
Wie mache ich das ?
lg
micha
Hallo,
Ich habe das Plugin "evermore" getestet.
es ist soweit ein super plugin, jedoch kürzt es erst bei einem absatz
<p></p>
im theme magazine-basic ist sowas schon automatisch mit drinn, dass die vorschau auf 55 wörter gekürzt werden.
ich benutze das mystique theme und würde soetwas auch gerne einbauen.
mit dem more tag möchte ich nicht arbeiten, weil ich immer nach zb. 100 wörtern gekürzt haben möchte.
kann man das realisieren mit einem codeschnippsel oder so?
habe in meiner core.php folgendes gefunden:
// filter post content (for other pages than single)
function mystique_trim_the_content($the_contents, $read_more_tag, $perma_link_to = '', $all_words = 100, $allowed_tags = array('a', 'abbr', 'blockquote', 'b', 'cite', 'pre', 'code', 'em', 'label', 'i', 'p', 'span', 'strong', 'ul', 'ol', 'li')) {
if($the_contents != ''):
// process allowed tags
$allowed_tags = '<' .implode('><',$allowed_tags).'>';
$the_contents = str_replace(']]>', ']]>', $the_contents);
// exclude HTML and shortcodes from counting words
$the_contents = strip_tags($the_contents, $allowed_tags);
$the_contents = strip_shortcodes($the_contents);
if(!is_numeric($all_words)) $all_words = 9999; // assuming full post
// count all
if($all_words > count(preg_split('/[\s]+/', strip_tags($the_contents), -1))) return $the_contents;
$all_chunks = preg_split('/([\s]+)/', $the_contents, -1, PREG_SPLIT_DELIM_CAPTURE);
$the_contents = '';
$count_words = 0;
$enclosed_by_tag = false;
foreach($all_chunks as $chunk):
// is tag opened?
if(0 < preg_match('/<[^>]*$/s', $chunk)) $enclosed_by_tag = true; elseif(0 < preg_match('/>[^<]*$/s', $chunk)) $enclosed_by_tag = false;
// get entire word
if(!$enclosed_by_tag && '' != trim($chunk) && substr($chunk, -1, 1) != '>') $count_words ++;
$the_contents .= $chunk;
if($count_words >= $all_words && !$enclosed_by_tag) break;
endforeach;
// note the class named 'more-link'. style it on your own
$the_contents = $the_contents.' <a class="more-link" href="'.$perma_link_to.'">'.$read_more_tag.'</a>';
// native WordPress check for unclosed tags
$the_contents = force_balance_tags($the_contents);
endif;
return $the_contents;
}
Alles anzeigen
<?php if($post_settings['post_content']): ?>
<div class="post-content clear-block">
<?php
if($post_settings['post_content_length'] == 'f'): the_content(__('<img src="http://www.garnelen-hl.de/movie/wp-content/themes/mystique/images/weiterlesen.png" />','mystique'));
elseif($post_settings['post_content_length'] == 'e'): the_excerpt();
else:
$word_count = $post_settings['post_content_length'];
// save original post content to variable
$content = get_the_content();
// prevent tags strip | it's a bug in WordPress!
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
// throw out trimmed: content to process, read more tag, post permalink, words length
echo mystique_trim_the_content($content, __('<img src="http://www.garnelen-hl.de/movie/wp-content/themes/mystique/images/weiterlesen.png" />','mystique'), get_permalink($post->ID), $word_count);
endif; ?>
</div>
<?php endif; ?>
Alles anzeigen
warscheinlich ist es nur eine kleinigkeit, kann mir wer helfen ?
achso ganz wichtig, ich habe in meinen posts immer ein bild eingefügt, was natürlich bei der vorschau mit angezeigt werden soll.
soweit wie ich gelesen habe, macht the_excerpt das ja nicht ....
bitte um rat...
Hallo,
ich verwende das Theme "Mystique" und würde gerne die thumbnails in der artikelvorschau deaktivieren.
habe in der core.php etwas gefunden:
function mystique_post_thumb($size = 'post-thumbnail', $post_id = false){
global $post, $id;
$post_id = (int)$post_id;
if (!$post_id) $post_id = $id;
$image = '';
if (has_post_thumbnail($post_id)) $image = get_the_post_thumbnail($post_id, $size);
if(get_mystique_option('post_thumb_auto') && !$image): // get the 1st image
$attachments = get_children(array('post_parent' => $post_id, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID'));
if($attachments):
$attachment = array_shift($attachments);
$image = wp_get_attachment_image($attachment->ID, $size);
endif;
endif;
if($image && !get_post_meta($post->ID, 'asides', true)):
echo '<a class="post-thumb size-'.$size.' alignleft" href="'.get_permalink($post_id).'">'.apply_filters("mystique_post_thumbnail", $image).'</a>';
return true;
endif;
return false;
}
Alles anzeigen
wenn ich nun die zeile:
echo '<a class="post-thumb size-'.$size.' alignleft" href="'.get_permalink($post_id).'">'.apply_filters("mystique_post_thumbnail", $image).'</a>';
lösche werden keine thumbnails mehr angezeigt, jedoch bleibt die zeile:
18. Aug Verfasst von admin unter Allgemein | Bearbeiten Keine Kommentare
so stehen! sie müsste etwas nach links verschoben werden...
was mache ich falsch ?
bitte um rat
Hallo,
ich habe das Plugin Wordtube im Einsatz.
in einem artikel wir dann das video wie folgt eingebunden
[MEDIA=1]
so nun zu meinem problem:
nun benutze ich noch das Flutter Plugin für custom fields
wenn ich nun in einem dieser custum fields [MEDIA=1] reinschreibe erscheint es auch so in meinem Artikel.
was muss ich da machen jetzt. bitte um hilfe, bin etwas am verzweifeln ...
gruß
micha