Versuch gerade bei der slider Funktion von catch everest die http links zu entfernen.
Die ganze Funktion sieht so aus:
PHP
if ( ! function_exists( 'catcheverest_post_sliders' ) ) :
/**
* Shows Featured Post Slider
*
* @uses catcheverest_header action to add it in the header
*/
function catcheverest_post_sliders() {
//delete_transient( 'catcheverest_post_sliders' );
global $post, $catcheverest_options_settings;
$options = $catcheverest_options_settings;
if( ( !$catcheverest_post_sliders = get_transient( 'catcheverest_post_sliders' ) ) && !empty( $options[ 'featured_slider' ] ) ) {
echo '<!-- refreshing cache -->';
$catcheverest_post_sliders = '
<div id="main-slider" class="container">
<section class="featured-slider">';
$get_featured_posts = new WP_Query( array(
'posts_per_page' => $options[ 'slider_qty' ],
'post__in' => $options[ 'featured_slider' ],
'orderby' => 'post__in',
'ignore_sticky_posts' => 1 // ignore sticky posts
));
$i=0; while ( $get_featured_posts->have_posts()) : $get_featured_posts->the_post(); $i++;
$title_attribute = apply_filters( 'the_title', get_the_title( $post->ID ) );
$excerpt = get_the_excerpt();
if ( $i == 1 ) { $classes = "post hentry slides displayblock"; } else { $classes = "post hentry slides displaynone"; }
$catcheverest_post_sliders .= '
<article class="'.$classes.'">
<figure class="slider-image">
<a title="Permalink to '.the_title('','',false).'" href="' . get_permalink() . '">
'. get_the_post_thumbnail( $post->ID, 'slider', array( 'title' => esc_attr( $title_attribute ), 'alt' => esc_attr( $title_attribute ), 'class' => 'pngfix' ) ).'
</a>
</figure>
<div class="entry-container">
<header class="entry-header">
<h1 class="entry-title">
<a title="Permalink to '.the_title('','',false).'" href="' .get_permalink() . '">'.the_title( '<span>','</span>', false ).'</a>
</h1>
</header>';
if( $excerpt !='') {
$catcheverest_post_sliders .= '<div class="entry-content">'. $excerpt.'</div>';
}
$catcheverest_post_sliders .= '
</div>
</article><!-- .slides -->';
endwhile; wp_reset_query();
$catcheverest_post_sliders .= '
</section>
<div id="slider-nav">
<a class="slide-previous"><</a>
<a class="slide-next">></a>
</div>
<div id="controllers"></div>
</div><!-- #main-slider -->';
set_transient( 'catcheverest_post_sliders', $catcheverest_post_sliders, 86940 );
}
echo $catcheverest_post_sliders;
}
endif; // catcheverest_post_sliders
Alles anzeigen
aber egal was ich ändere, die http links zum Blog Beitrag bleiben bestehen.
<a title="Permalink to '.the_title('','',false).'" href="' .get_permalink() . '">'.the_title( '<span>','</span>', false ).'</a>
Hat evtl. jemand einen Tipp?
Danke