Hallo Leute,
Habe das Problem das in meinen Template denke ich einmal der Read More Link nicht erstellt worden ist.
Da nach dem Text dann einfach (mehr...) erscheint auch ohne Link.
So dann habe ich die zuständige datei gefunden, dort gibt es keinen eintrag dazu.
Der Code sieht sieht aus.
Mit dem $output .= $contentt; wird mir den inhalt ausgeben.
Was müsste ich einfügen das mir ein schöner Red more ertellt wird mit einen link?
Vielen dank!!!
PHP
<?php
/* ================================================================================== */
/* Service Shortcode
/* ================================================================================== */
$atts = shortcode_atts(array(
'css' => '',
'custom_class' => '',
'element_class' => 'tw-element tw-carousel-container tw-post-carousel',
'element_dark' => '',
'animation' => 'none',
'animation_delay' => '',
// ----------------
'cats' => '',
'count' => '6',
'excerpt_count' => '',
'img_height' => '200',
'img_width' => '370',
), vc_map_get_attributes($this->getShortcode(),$atts));
$query = array(
'post_type' => 'post',
'posts_per_page' => $atts['count'],
);
$cats = empty($atts['cats']) ? false : explode(",", $atts['cats']);
if ($cats) {
$query['tax_query'] = Array(Array(
'taxonomy' => 'category',
'terms' => $cats,
'field' => 'slug'
)
);
}
$class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $atts['css'], ' ' ), $this->settings['base'], $atts );
$output = waves_item($atts,$class);
query_posts($query);
if (have_posts()) {
wp_enqueue_script('waves-owl-carousel');
global $post;
$output .= '<div class="tw-carousel">';
while(have_posts()){ the_post();
ob_start();
waves_blogcontent($atts);
$contentt = ob_get_clean();
$thumb = waves_standard_media($post, $atts);
if($thumb == ''){
$format = get_post_format() == "" ? "standard" : get_post_format();
$thumb = '<div class="format-icon '.esc_attr($format).'" data-twwidth="'.esc_attr($atts['img_width']).'" data-twheight="'.esc_attr($atts['img_height']).'"></div>';
}
$output .= '<div class="tw-owl-item">';
$output .= '<div class="carousel-thumb">' . $thumb . '</div>';
$output .= '<div class="carousel-content">';
$output .= '<h3 class="carousel-title"><a href="'.esc_url(get_permalink()).'">' . get_the_title() . '</a></h3>';
$output .= $contentt;
$output .= '</div>';
$output .= "</div>";
}
$output .= "</div>";
}
wp_reset_query();
$output .= "</div>";
/* ================================================================================== */
echo balanceTags($output);
Alles anzeigen