"Yazılar bulunamadı" nasıl yapılır?
4
●100
- 18-04-2019, 04:09:10https://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:54Ancak bildiğim kadarıyla böyle olmuyor mu? <?php endwhile; endif; ?>YAZI BULUNAMADI<?php endif; ?>DeibA adlı üyeden alıntı: mesajı görüntüle
- 18-04-2019, 04:26:53
<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:58Siz nasıl bir efsanesinizMisafir adlı üyeden alıntı: mesajı görüntüle
çok teşekkür ederim...
çok teşekkür ederim...