1. Halo Guest, pastikan Anda selalu menaati peraturan forum sebelum mengirimkan post atau thread baru.

Membuat Related Post Tanpa Plugin

Discussion in 'Wordpress' started by leniden, Oct 19, 2009.

  1. bloogmoo

    bloogmoo Ads.id Pro

    Joined:
    May 29, 2010
    Messages:
    328
    Likes Received:
    3
    atut ada yang error, but it work so well,

    teng kiu gan, lagian juga web space ane udah penuh, bingung mau ngapain lagi
     
    titoparsito likes this.
  2. qcle87

    qcle87 Ads.id Fan

    Joined:
    Dec 25, 2010
    Messages:
    113
    Likes Received:
    1
    Location:
    Lg numpang hidup d jogja
    numpang nanya gan?
    itu tanda "n" maksudnya apa? kok di replace jd spasi?
    apa maksudnya biar g duplikat title? ato gmn?
    tq.. semoga ada yg jawab d thread 2009 yg masih bermanfaat ini :D
     
  3. Overtrack

    Overtrack Banned

    Joined:
    Jan 13, 2011
    Messages:
    303
    Likes Received:
    1
    Gan, kalo buat Theme Bluesense gimana ya, di single.php nya nggak ada <?php the_content('Continue reading...'); ?> :nangis:

    Code:
    <?php get_header(); ?>
      <div id="wrapper">
      <?php include (TEMPLATEPATH . '/menu.php'); ?>
    
    	<div id="content" class="narrowcolumn">
    				
      <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    	
    		<div class="navigation">
    			<div class="alignleft"><?php previous_post('&laquo; %','','yes') ?></div>
    			<div class="alignright"><?php next_post(' % &raquo;','','yes') ?></div>
    		</div>
    	
    		<div class="post">
    			<h2 id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    <?php include "single_top_adverts.php" ?>
    			<div class="entrytext">
    				<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
    	
    				<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
    	
    				<p class="postmetadata alt">
    					<small>
    						This entry was posted
    						<?php /* This is commented, because it requires a little adjusting sometimes.
    							You'll need to download this plugin, and follow the instructions:
    							http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
    							/* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?> 
    						on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
    						and is filed under <?php the_category(', ') ?>.
    						You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed. 
    						
    						<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
    							// Both Comments and Pings are open ?>
    							You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(display); ?>">trackback</a> from your own site.
    						
    						<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
    							// Only Pings are Open ?>
    							Responses are currently closed, but you can <a href="<?php trackback_url(display); ?> ">trackback</a> from your own site.
    						
    						<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
    							// Comments are open, Pings are not ?>
    							You can skip to the end and leave a response. Pinging is currently not allowed.
    			
    						<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
    							// Neither Comments, nor Pings are open ?>
    							Both comments and pings are currently closed.			
    						
    						<?php } edit_post_link('Edit this entry.','',''); ?>
    						
    					</small>
    				</p>
    	
    			</div>
    <?php include "single_bottom_adverts.php" ?>
    		</div>
    		
    	<?php comments_template(); ?>
    	
    	<?php endwhile; else: ?>
    	
    		<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    	
    <?php endif; ?>
    	
    	</div>
    <?php get_sidebar(); ?>
      </div>
    <?php get_footer(); ?>
    Ane cuma pake domain berbayar gan, tapi dapat dari teman :hmm:, takut ketendang ntar gan :nangis:

    Katanya sih nggak boleh pake plugin atau script yang bisa memberatkan serveer :nangis:
     
  4. alhafizhi

    alhafizhi Super Hero

    Joined:
    Feb 3, 2011
    Messages:
    1,276
    Likes Received:
    198
    Location:
    Banjarmasin
    @overtrack : pasang setelah <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
     
  5. Overtrack

    Overtrack Banned

    Joined:
    Jan 13, 2011
    Messages:
    303
    Likes Received:
    1
    Makasih gan, bekerja dengan baik :hmm:
     
  6. jakasembung

    jakasembung Super Hero

    Joined:
    Oct 8, 2010
    Messages:
    1,737
    Likes Received:
    44
    Location:
    Bumi Allah SWT
    Mantabh gan trik nya
    makasih....
     
  7. QZoners

    QZoners Ads.id Pro

    Joined:
    Sep 4, 2006
    Messages:
    415
    Likes Received:
    189
    Location:
    Suroboyo
    Kalau saya lihat source-nya kayaknya dia cuma nampilin 5 post terbaru di kategori yang sama ya? Apakah bisa disebut related post? Maaf kalau salah
     
  8. workingonit

    workingonit Hero

    Joined:
    Nov 12, 2010
    Messages:
    628
    Likes Received:
    52
    Sob....kalo sy pake WP Advanced Newspaper gmn ya? krn di single.php tidak ada kode: <?php the_content('Continue reading...'); ?>
    thanks :)
     
  9. ivink3aray

    ivink3aray Super Hero

    Joined:
    Jul 7, 2010
    Messages:
    1,274
    Likes Received:
    39
    Location:
    Tangerang
    jadi related post yang bener kek gmn sob ? kombinasi tag dan category kah ?
     
  10. juliansyah

    juliansyah Newbie

    Joined:
    Jul 2, 2011
    Messages:
    27
    Likes Received:
    0
    ijin coba gan..
    thanks .. :)
     
  11. rezasaputra

    rezasaputra Newbie

    Joined:
    Jul 11, 2010
    Messages:
    28
    Likes Received:
    0
    Location:
    Ponorogo
    gak pake plugin, biar loading blog lebih cepat,, suka kawan
    :silau::silau:
     
  12. poetri

    poetri Super Hero

    Joined:
    May 11, 2011
    Messages:
    1,452
    Likes Received:
    265
    hampir idem gan....pertanyaannya,

    bagaimana caranya biar tidak hanya menampilkan 5 post terbaru dlam 1 kategori,
    melainkan bersifat random dalam kategori yang sama?

    bagian mana ya yg harus dirubah scritnya?

    tks
     
  13. jlabjleb

    jlabjleb Ads.id Fan

    Joined:
    May 14, 2013
    Messages:
    100
    Likes Received:
    2
    saya belum make yang beginian nih, tapi infonya membantu sekali..
    Terima kasih gan
     

Share This Page