Forums

News/Articles in other pages (8 posts)

  1. MathiasF
    Member
    Posted 4 months ago #

    Hello.
    I can't understand how I'm placing a article or some other stuff in a another section of the website.
    When i write something it will just be located in the frontpage. How can I get my articles in "about" or "photoshop" instead of "home"

  2. esmi
    Member
    Posted 4 months ago #

    All of your new posts are shown on your Home page in date order (assuming you have your front page set to display posts). If you want your posts to also appear under other headings, create new top level categories called "About" or "Photoshop" and ensure that the posts are also filed under these categories.

  3. MathiasF
    Member
    Posted 4 months ago #

    But how do I create top level categories?
    I have created pages such as Photoshop, and maked it by using "New Page" in the admin-panel.
    I have also created a categorie, but they arent displaying at the side of "Home" if you know ehat I mean.

  4. Otto42
    Moderator
    Posted 4 months ago #

    I have created pages such as Photoshop, and maked it by using "New Page" in the admin-panel.

    Then you did it wrong.

    This is a common mistake. The reason for it is that typically themes show Pages as like tabs on the top of your site or some such thing. However, the theme is doing that, it's entirely possible to change the theme to have it show categories there instead. Then you can click a category in that bar and get a list of posts in that category.

    Basically, you're going to edit your theme and replace, or add to, the call to wp_list_pages with a similar call to wp_list_categories. Then you'll get categories in the same way you get pages.

  5. MathiasF
    Member
    Posted 4 months ago #

    Ok.

    But when you are saying "the call ti wp_list_pages with a similiar call to wp_list_categories" I dont get it.

    What do I have to do? Which file should I edit?

  6. Otto42
    Moderator
    Posted 4 months ago #

    What do I have to do? Which file should I edit?

    I can't tell you that. I can't see your site or your theme or anything like that. What you change depends on what you have.

  7. MathiasF
    Member
    Posted 4 months ago #

    Ok, but i can't edit it from my admin panel? I have to edit a file in my theme?

  8. Otto42
    Moderator
    Posted 4 months ago #

    Well, your theme is what controls what shows up on your site, so yes, you have to edit it. Basically, you're wanting to display category links instead of, or in addition to, page links. So you need to find where your theme creates those links and change it.

    http://codex.wordpress.org/Template_Tags/wp_list_categories
    http://codex.wordpress.org/Template_Tags/wp_list_pages

Reply

You must log in to post.

About this Topic

Tags