Coding Frage

  • Servus Leute,
    ich probiere gerade ein wenig mit Wordpress herum und wollte mal fragen, wie ich machen kann, dass dort eine GIF Datei angezeigt wird.
    Hier der Code:



    <section class="responsiveslides">
    <ul class="responsiveslides-slide">
    <?php
    $args = array(
    'post_type' => 'post',
    'post__in' => get_option('sticky_posts'),
    );
    $query = new WP_Query( $args ); while ( $query->have_posts() ) : $query->the_post(); ?>
    <li>
    <a href="<?php the_permalink() ?>">
    <?php if ( has_post_thumbnail() ) { $slide_img = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'slide_image', false, '' ); ?>
    <?php the_post_thumbnail( 'slide_image' ); ?>
    <?php } else { ?>
    <img src="<?php echo get_template_directory_uri(); ?>/images/slide_default.jpg" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" />
    <?php } ?>
    </a>
    <?php if ( get_option( "ace_feature_title_enable" ) ) { ?>
    <article class="responsiveslides-caption">
    <h3><?php the_title(); ?></h3>
    <?php the_excerpt(); ?>
    </article>
    <?php } ?>
    </li>
    <?php endwhile; wp_reset_query(); ?>
    </ul>
    </section>


    <script type="text/javascript">
    /* <![CDATA[ */
    jQuery(document).ready(function($){ // START


    $( ".responsiveslides-slide" ).responsiveSlides({
    auto: true, // Boolean: Animate automatically, true or false
    speed: 500, // Integer: Speed of the transition, in milliseconds
    timeout: 3000, // Integer: Time between slide transitions, in milliseconds
    pager: true, // Boolean: Show pager, true or false
    nav: true, // Boolean: Show navigation, true or false
    random: false, // Boolean: Randomize the order of the slides, true or false
    pause: true, // Boolean: Pause on hover, true or false
    pauseControls: true, // Boolean: Pause when hovering controls, true or false
    prevText: "Previous", // String: Text for the "previous" button
    nextText: "Next", // String: Text for the "next" button
    maxwidth: "", // Integer: Max-width of the slideshow, in pixels
    navContainer: "", // Selector: Where controls should be appended to, default is after the 'ul'
    manualControls: "", // Selector: Declare custom pager navigation
    namespace: "responsiveslides", // String: Change the default namespace used
    before: function(){}, // Function: Before callback
    after: function(){} // Function: After callback
    });


    }); // END
    /* ]]> */
    </script>


    Im Moment wird ein normal JPEG Bild angezeigt möchte aber, dass ein GIF Bild angezeigt wird.

  • Im Moment wird ein normal JPEG Bild angezeigt möchte aber, dass ein GIF Bild angezeigt wird.


    Einfach...den Pfad der Datei von dem .jpg Bild auf den von dem .gif ändern...


    mfg. :rolleyes:

    ast2ufdyxkb1.png


    Leute, lernt scripten und versucht mal lieber etwas selber zu schreiben, als es aus einem GF zu kopieren. :S