• Resolved mqb_aimee

    (@mqb_aimee)


    I am trying to use permalinks on my new blog. I changed it to a custom structure of /%postname%/.

    When viewing my posts on the homepage, each post title on the blog still shows /index.php?p=#. When clicked, that URL shows in the address bar of the browser. HOWEVER, if a post title is accessed under the “Recent Posts” sidebar OR if a social bookmark is clicked on the post, the blog and address bar show /%postname% instead of /index.php?p=# as it does on the homepage itself. Both types of URLs work to get the same post.

    Does this have to do with the index.php file? Is it a problem with the theme I used? Any way to work around this so /index.php?p=# doesn’t show up when the main page is up?

    ——-
    Background Info:
    – I did check Using Permalinks.
    – I CHMOD’d the .htaccess file to 666 and it does not have any frontpage server extensions (I’m currently not using Frontpage).
    – Adding /index.php before the permalinks does not solve this issue.
    – I do not want the post-ID… just the postname.
    – Browser Used: Firefox 3.0.10
    – WP Version Used: 2.7.1
    – URL: http://www.myquickbuck.com/
    ——-

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m not an expert on WordPress, but I would hazard a guess that it’s because you’re accessing it from your homepage, index.html? Could it be something in your theme file or homepage specific settings?

    I haven’t experienced this problem before on my sites, so I wouldn’t know how to fix it. Sorry.

    Its not supposed to work that way. Take a look at your index.php theme file and see how the display of the permalink is coded on the post titles. Its supposed to say
    <a href="<?php the_permalink() ?>"

    If that’s not what you find ( <a href="<?php the_permalink() ?>" )
    try changing the code to that.

    If that is what you see, the first thing I’d try is resetting the permalinks to the default settings, and then change them back to /%postname%/ Sometimes that resets some internal WP coding.

    Thread Starter mqb_aimee

    (@mqb_aimee)

    Thank you both for your help!

    I checked the Main Index Template (index.php) and saw that the coding said:

    “><?php the_title(); ?>

    So I changed that to:

    “><?php the_title(); ?>

    and it worked!! 🙂

    Thanks again!

    Thread Starter mqb_aimee

    (@mqb_aimee)

    Thank you both for your help!

    I checked the Main Index Template (index.php) and saw that the coding said:

    <a href="index.php?p=<?php the_ID(); ?>"><?php the_title(); ?></a>

    So I changed that to:

    <a href="<?php the_permalink() ?>"><?php the_title(); ?></a>

    and it worked!! 🙂

    Thanks again!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Permalinks Problem’ is closed to new replies.