• Hi

    I’ve found a couple of strange posts/pages (not sure what they are) on my wordpress site.

    For example: https://jbmarwood.com/crude-oil-stock-market/sp500-and-wti-oil-correlation/

    This is basically a picture from a post that I recently published with the alt tags below it. I don’t know why it’s showing on its own url and its being picked up by google too. It’s happened a couple of times now but wasn’t happening before. I also got a google alert about it.

    Can anyone please help?

    Thanks!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • What you are seeing is the single attachment page template. It is default for WordPress and there is nothing you should worry about.

    Basically, each media that you upload through the Media section in the administration will have its own attachment page (like the one you provided).

    In case you want to disable these, you can create a new file in your theme, called attachment.php and insert the following code in it:

    global $post;
    if ( $post->post_parent ) {
    	$redirect_url = get_permalink( $post->post_parent );
    } else {
    	$redirect_url = home_url('/');
    }
    
    wp_redirect( $redirect_url, 301 ) );
    exit;
    Thread Starter jbmarwood

    (@jbmarwood)

    Ok Thanks! I’m glad there is nothing to worry about.

    What bothers me is that I have a Google Alert set up for my website (jb marwood) and it alerted me about this page. It should have alerted me to the blog post that the image was attached to but it didn’t.

    Is there something not quite right there?
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Strange Posts Appearing Image and Alt Tag’ is closed to new replies.