• I just set up another WP blog and I am finding that any links I post in an article appear on the main page fine, but if I click a category and read the article from there, the link is no longer active. Any suggestions as to how I can fix this?
    thanks,
    datter

Viewing 13 replies - 1 through 13 (of 13 total)
  • A link to your site would be helpful.

    Thread Starter Anonymous

    datter.com , sorry about that

    I have this problem too. Any ideas?

    http://www.hoffmann.ca/hdblog/

    Also, is there any way to add a link back to the main blog when looking at the articles?

    WordPress default uses <?php the_excerpt(); ?> for archive pages which removes all tags (including links). You’ll have to change this to <?php the_content(); ?> in the Archive template. Notice that there are several places in that template where the_excerpt is used.

    There is actually always a link back to the main page: the header. But you can add <a href="<?php echo get_settings('home'); ?>">Home [or other text]</a> anywhere you see fit

    I’ll try that! Thanks. No wait, make that: Thanks a bunch!

    I have the exact problem. My version of WP is 1.5 and the categories/archives simply died while I was posting. I tried changing the only <?php the_excerpt(); ?> I found in the archive.php of the default theme to <?php the_content(); ?> and nothing happened.

    can anyone shed some light on this?

    I can’t get anything else showing except the main page. All links are “Not found”…

    You’re right about there being only one the_excerpt. I remembered wrong. What there is more than one and often needs changing is the_time

    Worked like a charm, thanks:

    http://www.hoffmann.ca/hdblog/?cat=6

    Now I just need to find a proper domain name….

    what should “the_time” be changed to? and should i change the _excerpt? cause i reverted my changes just incase

    okay… i found out what was wrong.. it has nothing to do with replacing codes or anything.. i simply forgot to tell apache to read the .htaccess file in wordpress. i didnt know using permalinks required .htaccess files to be read and the manual did not mention of allowing .htaccess files to be read in wordpress.. i wrote this into my apache conf file and that solved everything

    <Directory “D:/Webserver/HTTP Server/wordpress”>
    AllowOverride Options FileInfo
    </Directory>

    sorry for the bad grammar… it’s 3:30am and i’m getting sleepy… not thinking straight…

    It looks like posting the URL of my blog before getting a domain name for it was a mistake. Google thinks it’s duplicate content. Is there any way I can edit my posts above to remove/change the URLs?

    Okay, the .htaccess file seems to be a problem.

    I installed WP1.5, typed a couple of entries, and then let it rest for awhile. Today I went back and when I tried to get into the login screen, I got a 500 error. Did a forum search and someone said that the .htaccess file was a problem and to delete it.

    I’m too cautious to delete, so I renamed the file and tried login again. This time it worked, but got a 404 error when I tried to view my previous posts.

    Because of the original 500 error, I figured that maybe something got messed up and I deleted the posts. Then I tried reposting. Now I get the index file but can’t get the archive file.

    After all the discussion above, it would appear to be .htaccess again. Yingjai talks about an apache config file. I don’t see that in my directory. How do I go about fixing this?

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Links do not work in archives/categories’ is closed to new replies.