• We recently migrated our entire website from WordPress.com to a standalone WordPress.org site.

    All went well and the website is all showing, just as it should do.

    But, some pages or posts appear on the web which do not appear in the WordPress Admin portal. These include /premises/267-old-brompton-road-graham-smith/

    I can edit the original page – /premises – but where is the post or page that shows at /premises/267-old-brompton-road-graham-smith/? It isn’t in my WordPress portal, nor can I find it when searching using FileZilla Pro.
    I’m very confused!

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator threadi

    (@threadi)

    This is the page for a media file (a so called attachment page). Search for it in the Media Library. When you visit the page while logged in, you should see a link to edit it at the top of the admin bar.

    Thread Starter eoarchives

    (@eoarchives)

    Thank you, Threadi.

    I do see the “edit” button but that just takes me to the .jpg file, not a page that I can edit. The problem I have is that it is using an incorrect template for the page that is showing the photo, but as I can’t edit it as a page I can’t alter the template. I can’t see the attachment page in the media library either.

    Moderator threadi

    (@threadi)

    Yes, that’s right – clicking on it takes you there. It’s an attachment page, so the file it belongs to will be displayed there.

    The template should be provided by your theme and can be customized through it. You’re apparently already using a child theme of the Shoreditch theme. This is a classic theme where these templates are stored as files.

    I just took a look at the theme. There’s a file called attachment.php that’s used as the template for this page. So if you want to customize anything here, copy that file into your child theme and modify the code there to suit your needs.

    I also notice that you’re using Shoreditch, which is a very old theme. It hasn’t been updated in 8 years and will likely already be causing – or will soon cause – some compatibility issues with WordPress or PHP. I’d recommend that you consider switching to a different theme.

    Thread Starter eoarchives

    (@eoarchives)

    Thank you Threadi for your extremely valuable support.

    I have managed to adapt attachment.php successfully, so the pages are now rendered correctly.

    I have tried to change the Theme, which was chosen by the original Webmaster for the site when he first set it up. But I’m struggling to find one that doesn’t break the general formatting of the site, which gives me a lot of work trying to recreate things in order to keep the general look the same.

    • This reply was modified 3 days, 5 hours ago by eoarchives.

    Step 1: Refresh Permalinks (Most Common Fix)

    Sometimes, the permalink structure or .htaccess rules get stuck during migration, causing pages to render on the frontend even if they aren’t loading properly in the dashboard.

    1. Go to your WordPress Dashboard.
    2. Navigate to Settings > Permalinks.
    3. Do not change anything, simply scroll to the bottom and click Save Changes twice. This flushes and refreshes your URL rewrite rules.

    Step 2: Check for a Child Page or Slug Conflict

    In WordPress, a URL like /premises/267-old-brompton-road-graham-smith/ means it could be a child page under the main “Premises” page.

    1. Go to Pages > All Pages.
    2. Look closely at the hierarchy under the main Premises page, or use the search bar at the top right to type 267-old or Graham Smith.
    3. Check your Trash folder as well, in case it was accidentally deleted during the migration.

    Step 3: Search Directly in the Database (phpMyAdmin)

    If the page is completely missing from your WordPress dashboard and FileZilla, it might be hanging in the database tables.

    1. Log in to your hosting control panel (cPanel, hPanel, etc.) and open phpMyAdmin.
    2. Select your website’s database.
    3. Click on the wp_posts table (note: your table prefix might be different, like wp_3g7_posts).
    4. Click on the Search tab at the top.
    5. In the post_name field, type 267-old-brompton-road-graham-smith and click Go.
      • If it appears here: Check its post_status. If it says draft, pending, or trash, change it to publish.
      • If it does not appear here: It means the page data is not in your current database.

    Step 4: Clear Server and Browser Cache

    Since you just migrated from WordPress.com to a standalone host, old cached versions of the site might still be showing up.

    • Hosting/CDN Cache: If you use Cloudflare or a caching plugin (like LiteSpeed, WP Rocket), go to your settings and click Purge All Cache.
    • Browser Cache: Open the link in an Incognito / Private Window to see if the page actually still exists or if it’s just your browser showing an old cached copy.
    Thread Starter eoarchives

    (@eoarchives)

    Thank you all for your invaluable support. I’ve decided against chasing my tail on where the Attachment Page lives, and I’ve created new pages from scratch, so that there won’t be any confusion when the original site is deleted. I was worrying that if the attachment pages are living in the original database, could that contain links to the attachment pages based on the original URL for the site.

    Without your help I wouldn’t have got this far, so thank you again. 🙂

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

You must be logged in to reply to this topic.