WordPress.org

Ready to get started?Download WordPress

Forums

Permalinks Delete Attachment ID? (8 posts)

  1. sudobeautify
    Member
    Posted 3 years ago #

    I recently switched my permalink structure over to:

    /%postname%/

    This has resulted in my attachment IDs not showing up when I go to the attachment/gallery page. That is to say that instead of showing the "id=xx" portion in the URL it merely displays:

    http://sudobeautify.com/eos-dollyeye-blue-review/%20/deb2

    For an example please view the following post's 6 image (3 by 3) gallery.

    http://sudobeautify.com/eos-dollyeye-blue-review

    The problem is resolved if I revert to the default permalink structure but i'd like to keep my pretty permalinks. Any ideas?

  2. esmi
    Forum Moderator
    Posted 3 years ago #

  3. sudobeautify
    Member
    Posted 3 years ago #

    Sorry about that esmi, I'd left it on the default permalink structure. Should be fixed now.

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    Try resetting your custom permalinks back to the default setting. If this works, then review Using_Permalinks before setting a custom permalink structure back up again.

  5. sudobeautify
    Member
    Posted 3 years ago #

    Esmi,

    I have reviewed using permalinks and aside from the recommendation against using only postname (which i've done before without this issue) I cannot see anything that would help me? Is there something specific I might be missing?

  6. esmi
    Forum Moderator
    Posted 3 years ago #

    Well, right now something is seriously wrong with your attachment permalinks, so I would strongly recommend that you reset them to the defaults, delete your .htaccess file and the set up a custom structure using one of recommended (preset) structures to see if that will help.

    Other options include:
    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Ten theme to rule out any theme-specific problems.

    - resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

  7. sudobeautify
    Member
    Posted 3 years ago #

    Esmi,

    Thanks for your continuing responses. Unfortunately none of the above worked.

    I reset my permalinks to a custom but preset structure and deleted the .htaccess file. (/%year%/%monthnum%/%postname%/) The link still does not display the attachment ID.
    It shows: http://sudobeautify.com/2011/05/eos-dollyeye-blue-review/deb1/ for the attachment page (this link won't work at the time of this reply as i'm reverting back to the pretty permalinks.)

    Deactivating my plugins did not resolve the issue.
    Changing to the twenty ten theme did not resolve the issue.
    I've reset the plugins folder and this too did not resolve the issue.

    As I said - I want to maintain the pretty structure with the postname only so reverting to the default isn't so much an option as it will be my last resort.

  8. esmi
    Forum Moderator
    Posted 3 years ago #

    It shows: http://sudobeautify.com/2011/05/eos-dollyeye-blue-review/deb1/ for the attachment page

    Well - at least that's a properly formed attachment url compared to what you had previously. Which suggests that it is a permalinks problem.

Topic Closed

This topic has been closed to new replies.

About this Topic