Forums

About Me Page (5 posts)

  1. Slappo
    Member
    Posted 5 years ago #

    I know there is a good discussion about how to make an "about me" page in WP (I saw it once), but I can't seem to find the right string to search.
    Anyway, I decided to do the about me page by making a post, assigning it to a post category called "about", creating a Link category called "about", creating links under that, and then hiding the post categories so it doesn't show up in my categories list, and assigning the Link category to the permalink of the post . All that works fine.
    What I want to do is hide of all the extraneous stuff like the date, the RSS feed info, "no comments posted", etc. etc. etc, but only on those permalink pages. I'm assuming that you have a function in your index.php that displays all that normal information EXCEPT from posts that fall into the category "about".
    Any idea on how to do this?
    Thanks!

  2. Slappo
    Member
    Posted 5 years ago #

    He does a separate "about" page. I want to do it as a post with it's own page (which I've done). I just want to be able to format those pages distinctly from the main page.

  3. Anonymous
    Unregistered
    Posted 5 years ago #

    hrm, sure Slappo, this little check should work:
    <?php if ($cat == 'about') {
    the_content();
    } else { ?>

    That should go right before the_date() function, and you'll need to put a <?php } ?> right before <?php endforeach; else: ?>. That should work.

  4. Slappo
    Member
    Posted 5 years ago #

    OK, that seems to do something. Here's what I'd like to do:
    <?php if ($cat == 'AboutNU,AboutDFC') {
    <div class="post">
    <h3 class="storytitle" id="post-<?php the_ID(); ?>"</h3>
    </div>
    the_content();
    } else { ?>
    But, this doesn't work. I'm assuming it's because I've got the phpID thing happening in there. I still want the name of the post. Everything else can go. What did I do wrong up there?

  5. Slappo
    Member
    Posted 5 years ago #

    Also, it seems like I can only use the category number
    <?php if ($cat == '28,29') {
    but that wipes out all the titles of all the posts on all my pages. Hmmm....

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.