Ready to get started?Download WordPress


Adding New Pages (19 posts)

  1. bk
    Posted 9 years ago #

    How do I create pages? If I try to make them using WordPress, then how would I add my menu?

    If I try to make them manually, copy and pasting all that code in index.php to other page files, I get an error.

    Please have a look at my site here: http://xeenat.com/wordpress

    Having a really hard time with WordPress. :P >.<

    Any help will be greatly appreciated. Thank you.

  2. Cypher
    Posted 9 years ago #

    In the Admin section go to Write->Pages.

    Here is where you create pages. Choose post-slugs that are descriptive of the page, such as "archives", "contact me" and so on. When you create them, WordPress will automatically update your .htaccess file to allow access to them.

    In your template for the menu, you would then just reference <yourdoamin.com>/archives or <yourdomain.com>/about and so on.

    Visit http://codex.wordpress.org/pages for more details.

    And in general http://codex.wordpress.org is the best place to start off in learning the basics of WP.


  3. bk
    Posted 9 years ago #

    Sorry, but what are post-slugs? There is a page-slug option. And I don't get the <yourdomain.com> part?

    Sorry, I'm new to PHP and WordPress. :(

  4. Kafkaesqui

    Posted 9 years ago #

    A post or Page slug is basically the same: the title of a post or Page in a format for use in the url. In WordPress there are two types of permalinks (links to specific content in your blog) you can have: the default, which would be something like index.php?p=10, or custom "cruft-free," "pretty" permalinks, which make use of elements like the 'slugs' to provide a more human-readable link.

    By <yourdomain.com> Cypher means your web site address: http://xeenat.com/ . In other words, your domain.

  5. bk
    Posted 9 years ago #

    Okay. I made a page for the site. It's called "Designs." Please take a look over here : http://www.xeenat.com/wordpress/?page_id=9

    Cypher says that add http://xeenat.com/thelink in my template menu. But that template is in the index.php file.

    There is no file for this particular "Designs" page so how would I add the menu?

    Take a look at this site : http://ganai.com. He's a friend of mine and he said that all his other pages are made using Notepad instead of WP except for the Index page. When I try to do that, I get an error.

    Can't I do that? Wouldn't that be easier? :S

    Thank you...

  6. moshu
    Posted 9 years ago #

    Your theme is based on the Default (Kubrick) which doesn't have sidebar (menu) in the page template.
    Open the header.php file of your blog and find this line:
    <?php /* Checks to see whether it needs a sidebar or not */ if ((! $withcomments) && (! is_single()) && (! is_page())) { ?>
    delete the part referring to pages:
    && (! is_page())
    and you'll have a sidebar on your Pages.

  7. bk
    Posted 9 years ago #


    I am talking about the horziontal menu. The brown colored one. Not the sidebar menus.

  8. moshu
    Posted 9 years ago #

    How did you insert it into your index.php (main template)? Do the same for the page.php.

  9. bk
    Posted 9 years ago #

    Moshu, you are god! One more question, now how do I make it so it displays on the comments page?

    Thank you so much for your help. This is site is really coming along. Thank you.

  10. moshu
    Posted 9 years ago #

    For the "comments page" - correctly: single.php - do the same in single.php as you did for the Page template.
    And repeat it in the archive.php for the monthly archives. (Warning: there is another file with a similar name - archives.php - do NOT touch that one; only the one with the "singular" name :)

    Edit. I know it's too late for this, but maybe for your next theme you should read this to understand which template is used for different views :)

  11. bk
    Posted 9 years ago #

    Thanks Moshu. :) Thank you very much for your help. :)

  12. bk
    Posted 9 years ago #

    Moshu or if anyone else knows, how do I get rid of the "Xeenat Blog" text on the header? I do want it so it displays in everyone's Browser Window, but I don't want it on my header image? And it's in the footer also?

    How do I get rid of it? And is there any way I can have individual titles for the different pages? If not, then it's perfectly fine. :)

    This was a page related problem so I'm not starting a new thread.

    Thank you.

  13. moshu
    Posted 9 years ago #

    The template tags in WP have pretty intuitive names!
    So, perusing your header.php will show you where do you want to keep the "bloginfo" stuff and where do you want to delete it.
    More details: http://codex.wordpress.org/Template_Tags/bloginfo

  14. bk
    Posted 9 years ago #

    Thank you. It worked. :)

    But on the comments page, I don't want the "Blog Archive" part in the title. How do I get ride of it? See here: http://www.xeenat.com/wordpress/?p=6#comments


  15. bk
    Posted 9 years ago #


  16. mumkin
    Posted 9 years ago #

    What do you have in your header.php between the <title> tags?

    See http://codex.wordpress.org/Template_Tags/wp_title for information on formatting page titles to your liking.

  17. bk
    Posted 9 years ago #

    I'm such an idiot. Got it fixed. Thanks. :)

    Also, is there anyway I could get rid of the "Next Post" and the "Previous Post" links? Check here : http://www.xeenat.com/wordpress/2005/05/17/xeenatcom-v2-update-4/

    The one on top, which lead you to next and previous posts. I found this code in index.php, but when I try to get rid of it, nothing happens.

    <div class="navigation">
    <div class="alignleft"><?php posts_nav_link('','','« Previous Entries') ?></div>
    <div class="alignright"><?php posts_nav_link('','Next Entries »','') ?></div>

  18. moshu
    Posted 9 years ago #

    Go back to my "anatomy" link provided 3 days ago (above) and study which template is used when 1 (one) post is displayed :)

  19. bk
    Posted 9 years ago #

    Thank you, thank you! *bows down to Moshu*

    Could you please check my other thread as well. :o

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.