Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter thepterodactyl

    (@thepterodactyl)

    Will it work if I place to the conditional around the following? Won’t that break it? Im not a PHP code person so Im clueless what to write…Can anybody help?

    <?php if (is_single()) { ?>
    
    <div class="navigation">
    <?php previous_post_link('<div class="left"><span>&laquo;</span> %link</div>') ?>
    <?php next_post_link('<div class="right">%link <span>&raquo;</span></div>') ?>
    <div class="clear"></div></div>
    
    	<?php } else { ?>
    
    	<div class="navigation">
    <?php $_SERVER['REQUEST_URI']  = preg_replace("/(.*?).php(.*?)&(.*?)&(.*?)&_=/","$2$3",$_SERVER['REQUEST_URI']); ?>
    <div class="left"><?php next_posts_link('<span>&laquo;</span> '.__('Older Entries','k2_domain').''); ?></div>
    <div class="right"><?php previous_posts_link(''.__('Newer Entries','k2_domain').' <span>&raquo;</span>'); ?></div>
    <div class="clear"></div>
    	</div>
    
    	<?php } ?>

    I am having this same problem on line 31….Did anyone come up with a solution?

Viewing 2 replies - 1 through 2 (of 2 total)