PHPacemisi adlı üyeden alıntı

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

if ( $attachments ) {
foreach ( $attachments as $attachment ) {
?>
  • ID, 'full' ); ?>

    post_title ); ?>



  • }
    }
    endwhile; endif;


    KAYNAK:
    https://developer.wordpress.org/reference/functions/wp_get_attachment_image/


    ilgin için cok tesekkur ederım,nasıl kullanıcam acaba

    Ek Olarak:

    PHPacemisi adlı üyeden alıntı

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

    if ( $attachments ) {
    foreach ( $attachments as $attachment ) {
    ?>
  • ID, 'full' ); ?>

    post_title ); ?>



  • }
    }
    endwhile; endif;


    KAYNAK:
    https://developer.wordpress.org/reference/functions/wp_get_attachment_image/


    dostum buarada ben anasayfada gosterıcam,postlarda değil

    Ek Olarak: guncel

    Ek Olarak:

    PHPacemisi adlı üyeden alıntı

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

    if ( $attachments ) {
    foreach ( $attachments as $attachment ) {
    ?>
  • ID, 'full' ); ?>

    post_title ); ?>



  • }
    }
    endwhile; endif;


    KAYNAK:
    https://developer.wordpress.org/reference/functions/wp_get_attachment_image/


    bakarmısınız lutfen

    Ek Olarak:

    PHPacemisi adlı üyeden alıntı

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

    if ( $attachments ) {
    foreach ( $attachments as $attachment ) {
    ?>
  • ID, 'full' ); ?>

    post_title ); ?>



  • }
    }
    endwhile; endif;


    KAYNAK:
    https://developer.wordpress.org/reference/functions/wp_get_attachment_image/


    hala yapamadım dostum