• I want to have post title instead of post text on my wordpress slider, but when im changing the_post to the_title something goes wrong.

    <ul class="slides">
        <?php 
    
            $slide = get_option('cany_slide_cat');
            $count = get_option('cany_slide_count');
            $slide_query = new WP_Query( 'category_name='.$slide.'&posts_per_page='.$count.'' );
            while ( $slide_query->have_posts() ) : $slide_query->the_post();
      $do_not_duplicate[] = $post->ID
        ?>
        <li>
        <a href="<?php the_permalink() ?>"><img class="slideimg" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo get_image_url()?>&h=300&w=650&zc=1" title="" alt="" /></a>
        <div class="flex-caption">
        <?php wpe_excerpt('wpe_excerptlength_slide', ''); ?>
        </div>
        </li>
        <?php endwhile; ?>
        </ul>

    url of my web-page is: https://soccerway.ge/

    Thank you in advance

  • The topic ‘Cant change slider's post text to post title’ is closed to new replies.