• 26-04-2014, 13:58:44
    #1
    Üyeliği durduruldu
    Merhaba arkadaşlar,

    Wordpress bir yazıya ait tüm resimleri nasıl çekerim yapmak istediğim tüm
    resimleri çekip jquery ile sırayla göstermek, şimdiden teşekkürler
  • 26-04-2014, 15:48:26
    #2
    Kimlik doğrulama veya yönetimden onay bekliyor.
    <ul>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post();

    $args = array(
    'post_type' => 'attachment',
    'numberposts' => -1,
    'post_status' => null,
    'post_parent' => $post->ID
    );

    $attachments = get_posts( $args );
    if ( $attachments ) {
    foreach ( $attachments as $attachment ) {
    echo '<li>';
    echo wp_get_attachment_image( $attachment->ID, 'full' );
    echo '<p>';
    echo apply_filters( 'the_title', $attachment->post_title );
    echo '</p></li>';
    }
    }

    endwhile; endif; ?>
    </ul>
  • 26-04-2014, 18:02:08
    #3
    Üyeliği durduruldu
    konu içerisinde başlık falan olduğu için hata alıyorum direk img bölümü için hangi kodu kullanmalıyım