• Resolved phybron

    (@phybron)


    I have a photo gallery site with main pages and subpages. If I switch permalinks on the subpages all start showing the image of their parent pages. The links are changing but the picture is not.

    Switching permalinks off and it all works properly again. I thought it might be All in One SEO, but no difference with that switched off. I replaced .htaccess with a new one – no help there either.

    Any clues?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Sounds like your theme is referencing the image attachments incorrectly.

    Thread Starter phybron

    (@phybron)

    It’s the PhotoWP theme. I tried changing the <?php the_permalink(); ?>
    command in theloop.php to a <?php $permalink = get_permalink( $id ); ?> command, but that didn’t work.

    Thread Starter phybron

    (@phybron)

    Finally fixed it – I noticed the default permalinks offered on the WordPress Permalink page where putting /archives/ in before the post_id. Changing it to /%postname%/%post_id% made it work.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Subpages not working properly with permalinks’ is closed to new replies.