İyinet'e Hoşgeldiniz!

Türkiye'nin En Eski Webmaster Forum'una Hemen Kayıt Olun!

Kayıt Ol!

Wordpress son konular

bluesboystunes

0
İyinet Üyesi
Katılım
22 Kasım 2014
Mesajlar
10
Reaction score
0
Arkadaşlar wordpress altyapılı bir site açtık sol menüde son yazılar var sorunumuz şu son yazılarda en son yazılan başlıklar gözüküyor bizim istediğimiz daha aşağıdaki başlıklara yorum yazılınca en üste çıkması inci sözlük ekşi sözlük veya forumlarda olduğu gibi nasıl yapacağım hakkında pek bir fikrim yok açıksası teknik bilgim yetmedi uzman arkadaşlar yardımcı olursa veya öneride bulunursa çok sevinirim

Son Başlıkları bunula çekiyoruz ;
PHP:
<div id="left">
<?php if(is_home()) { $recent = new WP_Query("showposts=30&orderby=date&order=desc&offset=5"); } else { $recent = new WP_Query("showposts=30&orderby=date&order=desc"); } while ( $recent->have_posts() ) : $recent->the_post(); ?>
<h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a> <?php comments_number('', '(1)', '(%)' );?></h3>
<?php endwhile; wp_reset_query(); ?>
</div>

Son yorumları da bunula çekiyoruz ;
PHP:
<?php
/**
 * [MENTION=21271]pack[/MENTION]age WordPress
 * @subpackage Default_Theme
 */
// Do not delete these lines
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if ( post_password_required() ) { ?>
<p class="nocomments">This post is password protected. Enter the password to view comments.</p>
<?php
return;
}
?>
<!-- You can start editing here. -->
<?php if ( have_comments() ) : ?>
<div class="commentlist">
<?php wp_list_comments('type=comment&callback=mytheme_comment'); ?>
</div>
<div class="navigation">
<div class="alignleft"><?php previous_comments_link() ?></div>
<div class="alignright"><?php next_comments_link() ?></div>
</div>
<?php if ( !empty($comments_by_type['pings']) ) :  ?>
<h4>Trackbacks</h4>
<b>Check out what others are saying about this post...</b>
<ol class="commentlist">
<?php wp_list_comments('type=pings'); ?>
</ol><br /><br />
<?php endif; ?>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post->comment_status) : ?>
<!-- If comments are open, but there are no comments. -->
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<p class="nocomments">Yoruma kapatılmıştır.</p>
<?php endif; ?>
<?php endif; ?>
<?php if ('open' == $post->comment_status) : ?>
<div id="respond">
<div class="cancel-comment-reply">
<small><?php cancel_comment_reply_link(); ?></small>
</div>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logged in</a> to post a comment.</p></div>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p>Seni <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a> diye tanıyoruz, <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Çıkış Yap">yoksa değil misin?</a></p>
<?php else : ?>
<p><label for="author"><small>İsim</small></label>
<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
<label for="email"><small>E-Posta</small></label>
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" /></p>
<?php endif; ?>
<!--<p><small><strong>XHTML:</strong> Bu kodları kullanabilirsiniz: <code><?php echo allowed_tags(); ?></code></small></p>-->
<p><textarea name="comment" id="comment" rows="5" tabindex="4" style="width:95%;"></textarea></p>
<p><input name="submit" type="submit" id="submit" tabindex="5" value="Yanıtla" />
<?php comment_id_fields(); ?>
</p>
<?php do_action('comment_form', $post->ID); ?>
</form>
</div>
<?php endif; // If registration required and not logged in ?>
<?php endif; // if you delete this the sky will fall on your head ?>
 

Türkiye’nin ilk webmaster forum sitesi iyinet.com'da forum üyeleri tarafından yapılan tüm paylaşımlardan; Türk Ceza Kanunu’nun 20. Maddesinin, 5651 Sayılı Kanununun 4. maddesinin 2. fıkrasına göre, paylaşım yapan üyeler sorumludur.

Backlink ve Tanıtım Yazısı için iletişime geçmek için Skype Adresimiz: .cid.1580508955483fe5

Üst