Header Ads

Header ADS

News ticker dynamic for News website

 


======how to dynamic newtricker====



//website e 1 ta side theke autometic kisu likha left to right or right to left e jay, take bola hoy news tricker.


//latest post gular title news ticker hisabe show kore.


//but wp-dashboard e post thakte hobe, taholei news ticker display korbe.

<?php wp_reset_query(); ?>  //ei function ta use korle while loop er pore r kaj korbe nah. while loop er pore ei function ta use korle valo hobe.



//index.php te ei code gula add korte hobe.

<!-- news ticker -->

                        <div id="ticker">

                            <div class="clip">

                                <div class="today">

                                    <ul>

                                        <?php 


                                        if (have_posts()):


                                            while(have_posts()) : the_post();



                                         ?>

                                        <li><?php the_title(); ?></li>

                                    <?php endwhile; ?>

                                <?php endif; ?>

<?php wp_reset_query(); ?>  

                                       

                                    </ul>

                                </div>

                              </div>

                        </div>

                        <!-- news ticker -->


No comments

Theme images by fpm. Powered by Blogger.