• 18-04-2019, 03:51:23
    #1
    [Çözüldü]
  • 18-04-2019, 04:09:10
    #2
    https://developer.wordpress.org/refe...nt_user_posts/

    $the_user = get_user_by('login', 'KULLANICI_ADI_DOLAYISIYLA_GET_PARAMETRESI');
    $userID = $the_user->ID;
    $user_post_count = count_user_posts( $userID );
    Bundan sonrasi zaten if/else
  • 18-04-2019, 04:10:54
    #3
    DeibA adlı üyeden alıntı: mesajı görüntüle
    https://developer.wordpress.org/refe...nt_user_posts/

    $the_user = get_user_by('login', 'KULLANICI_ADI_DOLAYISIYLA_GET_PARAMETRESI');
    $userID = $the_user->ID;
    $user_post_count = count_user_posts( $userID );
    Bundan sonrasi zaten if/else
    Ancak bildiğim kadarıyla böyle olmuyor mu? <?php endwhile; endif; ?>YAZI BULUNAMADI<?php endif; ?>
  • 18-04-2019, 04:26:53
    #4
    <h3 style="margin-bottom:20px;margin-top:40px;margin-left:10px;">
    Yazılarım
    </h3>
    <hr align="left" color="#eee" style="width:100%;margin-bottom:20px;">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <a rel="nofollow" href="<?php the_permalink(); ?>" rel="bookmark"><h3 style="margin-bottom:25px;margin-left:5px;"><?php the_title(); ?></h3></a>
    <?php endwhile; else: ?>
    echo "Yazı bulunamadı";
    <?php endif; ?>
  • 18-04-2019, 04:41:58
    #5
    Misafir adlı üyeden alıntı: mesajı görüntüle
    <h3 style="margin-bottom:20px;margin-top:40px;margin-left:10px;">
    Yazılarım
    </h3>
    <hr align="left" color="#eee" style="width:100%;margin-bottom:20px;">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <a rel="nofollow" href="<?php the_permalink(); ?>" rel="bookmark"><h3 style="margin-bottom:25px;margin-left:5px;"><?php the_title(); ?></h3></a>
    <?php endwhile; else: ?>
    echo "Yazı bulunamadı";
    <?php endif; ?>
    Siz nasıl bir efsanesiniz çok teşekkür ederim...