Forums

[resolved] Cannot figure out why line break won't work! (4 posts)

  1. de1337er
    Member
    Posted 2 years ago #

    I'm trying to implement a standardized footer of sorts on the bottom of all my posts. Here is the code I'm using and a picture of what shows up. No mateer what I try WordPress seems to defy creating a line break. I also get the same problem when I include PHP code in a post - I'm using a plugin that allows me to execute inline PHP in a post. I cannot create a line break between PHP. Is there a PHP specific line break? I've used
    and \n with no success.

    <?php
    	$lcurl = 'http://tubenow.net/link-checker/?url=' . urlencode($_SERVER['SERVER_NAME'] . 	$_SERVER['REQUEST_URI']);
    	$tnlc = '<a href="' . $lcurl . '"  target="_blank">>>Click to check if files are alive on download 	server<<</a>';
    
    			echo $tnlc;
    ?>
    
    <?php
    			echo "\n";
    ?>			
    
    <?php 
    
    			if(function_exists('the_ratings')) { the_ratings(); }
    ?>

    [IMG]http://i37.tinypic.com/72vpmb.gif[/IMG]

    Please help, this is frustrating me to no end!

  2. de1337er
    Member
    Posted 2 years ago #

    It didn't show up correctly but what I meant to say is that I've tried </br> and \n.

    I'm also using WordPress version 2.8.5.

  3. eugenealegiojo
    Member
    Posted 2 years ago #

    try this:
    <?php
    echo "<BREAK/><BREAK/>";
    ?>

    Note: just abbreviate the BREAK.

  4. de1337er
    Member
    Posted 2 years ago #

    Thanks a ton, Eugene. It worked!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags