Support » Fixing WordPress » Custom Pages Help

  • Resolved heyheykaylarae

    (@heyheykaylarae)


    (please dont get mad at me, I looked for over an hour on how to fix this…i just couldn’t do it!)

    Ok, when I create a new page its has the date and comments and whats its posted under all on it. But I don’t want that. I just want the content I put on the page. I don’t have a page.php file. So I know its using the index template thing. I tried making my own custom page.php file…but it just messed things up. Can anyone help me create one so that the date and comments stuff does not show up?
    my site is heyheykaylarae.com/blog
    and the only page I have right now is
    http://heyheykaylarae.com/blog/?page_id=6

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • So you want Pages to look exactly like your home or single post pages (with same sidebar elements and whatnot), but just no date info or comments?

    Upload your theme’s current index.php here:

    http://paste.uni.cc/

    And reply with the url you get for it. We’ll fix up a Page for ya.

    Thread Starter heyheykaylarae

    (@heyheykaylarae)

    “Fixed” page.php:

    http://paste.uni.cc/7682

    Here’s an explanation of what I did:

    1.
    <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>

    is now:
    <small>&nbsp;</small>

    I didn’t remove this line outright, to keep spacing the same between title and content matched to the rest of your site. If you don’t mind that difference, remove the line totally.

    2.
    <p clas="postmetadata">Posted in <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Edit','','<strong>|</strong>'); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>

    is now:
    <?php edit_post_link('Edit','<p clas="postmetadata">','</p>'); ?>

    Pages are not in categories per se, so displaying this is superfluous. Comments link will not show even if providing comments in Pages, so it’s useless here.

    3.
    <?php comments_template(); ?>

    Includes the comments.php template, so this line is gone now.

    4.
    <p align="center"><?php next_posts_link('&laquo; Previous Entries') ?> &nbsp; <?php previous_posts_link('Next Entries &raquo;') ?></p>

    Removed this line as well. These only work with posts, so they’re not necessary here.

    Thread Starter heyheykaylarae

    (@heyheykaylarae)

    Thank SOO much, its exactly what I wanted.
    Im slowly starting to understand WP more.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom Pages Help’ is closed to new replies.