Forums

Links not working at all in Linux Force theme (19 posts)

  1. Marius-
    Member
    Posted 2 years ago #

    I have just set up my first wordpress site. I am using the Linux Force theme and everything has gone great until right now. I found out that the links are not working at all.

    And also, I try to create categories and pages, but it just wont be published within any of the links. Why is that? Do I have to manually go into the files and direct each link to static pages?

  2. sasch9r
    Member
    Posted 2 years ago #

    Could you post a link to your blog or to the theme please?

  3. Marius-
    Member
    Posted 2 years ago #

  4. Marius-
    Member
    Posted 2 years ago #

    bump

  5. actorjiml
    Member
    Posted 2 years ago #

    What links are not working? I can follow the link from the one post to the individual page.

  6. Marius-
    Member
    Posted 2 years ago #

    You can? Cause I certainly can not. Archives, Search, About nor Downloads work at all.

  7. moshu
    Member
    Posted 2 years ago #

    1. You can not mix "ugly" and nice permalinks - like /?p=123 and /search
    2. You should NEVER link directly to any template file!!! (like you did with the "archives.php"). That file with that name should be a Page template and you create a Page using the template and you link to that page... /?page_id=321
    3. The same applies to any Page (e.g. About etc.)

  8. whooami
    Member
    Posted 2 years ago #

    You should NEVER link directly to any template file!!!

    Morning Moshu :)

    He just changed that, when i looked about 5 minutes ago it wasnt pointing to the template file. It was pointing to /archives

  9. Marius-
    Member
    Posted 2 years ago #

    What do you mean creating a page template? I go into "Write Page" then I write it, then I select it to appear under "about" but that doesn't help, so then I copy that link and past it into the a href... still wont work.

    Now its not just that the link doesnt work, but none of the default theme pages will appear at all. Search, About, Archives and Downloads, none of the appears. When I for instance put this in my adressbar www.reager.no/search.php then nothing happens, I just get to an errorsite.

  10. moshu
    Member
    Posted 2 years ago #

  11. Marius-
    Member
    Posted 2 years ago #

    Yes I know, I've read it. Comon, what do I need to do for the archive and stuff to work? Cant you just say what I need to do? Instead of giving me a link.

  12. Marius-
    Member
    Posted 2 years ago #

    Whats that thing about Wordpress generating template files for you and stuff? How do you do that.

    It would be much easier if it generate some default files that I could then go in and edit.
    -
    And Moshu, I can sense some form of help in your answer but still I don't quite know how to practice it. Do you say I shall copy all the code from the archives file and past it into the code part of a post? And then link to that post ?

  13. moshu
    Member
    Posted 2 years ago #

    As far as I know WordPress does NOT generate any template files. Template files are part of a theme - physically existing .php files... while all your content is in the database and is displayed by the different template files, depending on your query.
    Whenever you create a post or a Page you don't "generate" anything, except the data is stored in the database.

  14. Marius-
    Member
    Posted 2 years ago #

    I added another question just before you answered..

  15. moshu
    Member
    Posted 2 years ago #

    1. You should never copy any PHP code in a post or Page.
    2. When it comes about Pages in the admin panel at Write > Write Page subpanel you should see on the right the "Page Template" dropdown to select which template to use for different Pages. Warning: the dropdown will show up ONLY if you have the default template (=page.php) plus at least one other Page Template. (As for how to create Page templates read the link I gave above... until you understand it. You can create a zillion Page templates.)
    3. Never mix Pages and posts - they are different animals.

  16. Marius-
    Member
    Posted 2 years ago #

    Yes, but first and foremost, Pages are my last concern. I want the Wordpress systems to work, the archives and search functions and that stuff.

    Those are not pages are they?

  17. moshu
    Member
    Posted 2 years ago #

    Yes, they are.
    And if you have read the article I suggested, you could have seen Page template examples fro "archives" and the Codex also have an article about making a search Page.

  18. Marius-
    Member
    Posted 2 years ago #

    OK, Now I will read it AGAIN, and see how far I get.

  19. Marius-
    Member
    Posted 2 years ago #

    YEEEEEEEES!!!!!
    FINALLY I DID IT!!!

    I did not have to read all the bullcrap everyone was posting. Moshu, you helped me somewhat with these lines:

    you create a Page using the template and you link to that page... /?page_id=321

    That helped me to understand the system better. But then I also needed to read this one line:

    2. Click on the template drop down menu and select the php file from the selection available (About.php for your about page etc)

    From the readme file.
    I did not see this mentioned as simple and well in any of the site documents.

    After that, I just needed to put some text in, I dont know where the text went, but it made the page possible to publish.

    Also, the use of the word "template" confused me alot. Mostly because the themefile already contained templates. I thought I had to code my whole archive myself sorta. But luckily not.

Topic Closed

This topic has been closed to new replies.

About this Topic