i have a themler slide and i add a cms code in to slide1
Problem1
when i make duplicate slide it's not working.
Problem2
when i want to make new one its not working.
Problem3
i writed a slider plugin and its not working in themler.
my cms code 1
<?php wp_query arguments $args ( 'post_type'?> array( 'turlar' ),
'post_status' => array( 'publish' ),
'nopaging' => false,
'posts_per_page' => '1',
'offset' => '0',
'order' => 'DESC',
'orderby' => 'date',
'cache_results' => true,
'update_post_meta_cache' => true,
'update_post_term_cache' => true,
);
// The Query
$query_themler_image = new WP_Query( $args );
// The Loop
if ( $query_themler_image->have_posts() ) {
while ( $query_themler_image->have_posts() ) {
$query_themler_image->the_post();
// do something
echo '<a href title>';
if (has_post_thumbnail()):
the_post_thumbnail();
endif;
echo '</a>';
}
} else {
// no posts found
echo 'No description found';
}
// Restore original Post Data
wp_reset_postdata();
?>
my cms code2
<?php wp_query arguments $args ( 'post_type'?> array( 'turlar' ),
'post_status' => array( 'publish' ),
'nopaging' => false,
'posts_per_page' => '1',
'offset' => '0',
'order' => 'DESC',
'orderby' => 'date',
'cache_results' => true,
'update_post_meta_cache' => true,
'update_post_term_cache' => true,
);
// The Query
$query_themler_desc = new WP_Query( $args );
// The Loop
if ( $query_themler_desc->have_posts() ) {
while ( $query_themler_desc->have_posts() ) {
$query_themler_desc->the_post();
?>
<h1 class="entry-title">
<a href="<?php echo esc_url( get_permalink($turlar_id) ); ?>">
<?php echo get_page($turlar_id)->post_title; ?>
</a>
</h1>
<div class>Gidiş Tarihi :<?php echo esc_html( get_post_meta( get_the_id(), 'tarih', true ) );?>
<div class="entry-content">Dönüş Tarihi :<?php echo esc_html( get_post_meta( get_the_ID(), 'tarih_b', true ) ); ?>
<p><?php echo esc_html( get_post_meta( get_the_ID(), 'tur_suresi', true ) ); ?></p><p><?php echo esc_html( get_post_meta( get_the_ID(), 'fiyat', true ) ); ?></p>
<a href="<?php echo esc_url( get_permalink($turlar_id) ); ?>">
</div> <button type="button">Turu İncele</button></a>
<?php } } else { no posts found echo 'no description found'; } restore original post data wp_reset_postdata();?>
and my slider plugin front end codes
<div class>
<?php
$arg = array(
'post_type' => array( 'slidere' ),
'posts_per_page' => 10,
'order' => 'asc'
);
$slidere = new WP_Query($arg);
$j = 0;
$post_count = wp_count_posts('slidere')->publish;
?>
<!-- Carousel -->
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<?php for($i=0;$i<$post_count; $i++): ?>
<li data-target="#carousel-example-generic" data-slide-to="<?php echo $i; ?>" class="active"></li>
<?php endfor; ?>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner" style="width: 100%;max-height: 460px">
<?php while($slidere->have_posts()) : $slidere->the_post(); ?>
<div class="item<?php echo $j==0 ? ' active': '';?>">
<span><?php if(has_post_thumbnail()): the_post_thumbnail('slidere'); endif; ?> </span>
<!-- Static Header -->
<div class="header-text23 hidden-xs" style="position:absolute;top: 20%;left: 1.8%;right: auto;width: 96.66666666666666%;color: #fff;">
<div class="col-md-12 text-center">
<h2>
<span> <strong><?php the_title() ?></strong></span>
</h2>
<br>
<h3>
<a href="<?php echo get_post_meta(get_the_ID(),'_slidere_link_value_key', true); ?>"><span><?php the_excerpt(); ?></span></a>
</h3>
</div>
</div><!-- /header-text -->
</div>
<?php $j++; endWhile; wp_reset_query(); ?>
</div>
<!-- Controls -->
<a class="left carousel-control" style="opacity: 1;filter:alpha(opacity=100);background-image: none;background-repeat: no-repeat;text-shadow: none;padding: 15px;" href="#carousel-example-generic" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" style="position: absolute;top: 45%;z-index: 5;display: inline-block;left: 0;"></span>
</a>
<a class="right carousel-control" style="opacity: 1;filter:alpha(opacity=100);background-image: none;background-repeat: no-repeat;text-shadow: none;padding: 15px;" href="#carousel-example-generic" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" style="position: absolute;top: 45%;z-index: 5;display: inline-block;right: 0;"></span>
</a>
</div><!-- /carousel -->
please help
i bored themler



