IF you delete this the sky will fall in

Discussion in 'WordPress' started by sarkin ruwa, Jun 19, 2009.

  1. #1
    I dont want to show this on my post pages

    Posted in Uncategorized | Edit|

    Comments are closed.

    I went into comment.php and it says

    <?php // if you delete this the sky will fall on your head
    endif; ?>

    How do I go about setting up my posts so that "Posted in Uncategorized | Edit|

    Comments are closed." will not show on any posts I make

    follow the link you will have abetter idea of what I am talking about

    http://www.fastremortgagesuk.co.uk/mortgage-quotes/
     
    sarkin ruwa, Jun 19, 2009 IP
  2. sandeepdude

    sandeepdude Well-Known Member

    Messages:
    1,741
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    195
    #2
    just make a backup and remove it...

    if its not working,replace the file with the original one..
     
    sandeepdude, Jun 19, 2009 IP
  3. sarkin ruwa

    sarkin ruwa Peon

    Messages:
    483
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks backed it up and replace ASAP
     
    sarkin ruwa, Jun 19, 2009 IP
  4. hopehunter

    hopehunter Member

    Messages:
    141
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    35
    #4
    in single.php delete this line:

     
    <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/wordpress/time-since/ */
    							/* $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 post_comments_feed_link('RSS 2.0'); ?> feed.
    
    						<?php if ( comments_open() && pings_open() ) {
    							// Both Comments and Pings are open ?>
    							You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
    
    						<?php } elseif ( !comments_open() && pings_open() ) {
    							// Only Pings are Open ?>
    							Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
    
    						<?php } elseif ( comments_open() && !pings_open() ) {
    							// Comments are open, Pings are not ?>
    							You can skip to the end and leave a response. Pinging is currently not allowed.
    
    						<?php } elseif ( !comments_open() && !pings_open() ) {
    							// Neither Comments, nor Pings are open ?>
    							Both comments and pings are currently closed.
    
    						<?php } edit_post_link('Edit this entry','','.'); ?>
    
    					</small>
    				</p>
    
    
    PHP:
    and
    <?php comments_template(); ?>
    PHP:
    You could just edit out ^ to prevent posting, but the other stuff is for all that other junk at the end of the post.

    In index.php, find this:

    
    <p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
    
    PHP:
    and change to:

    
    <p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?><?php edit_post_link('Edit', '', ''); ?> </p>
    
    PHP:
    This is just based off the default theme so your code may be different. Use as a guideline as I don't know what your specific code looks like.

    You will also want to edit your archive.php file and take out:

    <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?>
    PHP:
     
    hopehunter, Jun 19, 2009 IP
    Jen_Peoples likes this.
  5. sarkin ruwa

    sarkin ruwa Peon

    Messages:
    483
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thats really cool thanks
     
    sarkin ruwa, Jun 19, 2009 IP