SEO & AI Search (GEO) Expert

Improve your Google ranking with Peter Mahoney, 20+ years SEO & Wordpress experience

  • SEO Overhaul
  • SEO Campaign
  • WP Support
  • Blog
    • SEO Emails
  • Praise

The flu has retreated and I’m back into…

March 7, 2013 by Peter Mahoney

The flu has retreated, and I’m back into the thick of it!

Filed Under: Nerd-stream, Uncategorized Tagged With: flu

http petermahoney net search engine optimisation seo code

March 4, 2013 by Peter Mahoney

http://petermahoney.net/search-engine-optimisation-seo-code/

Filed Under: Nerd-stream, Uncategorized Tagged With: code, seo

Search Engine Optimisation (SEO): Code

March 4, 2013 by Peter Mahoney

There are a number of ways you want to improve your website’s code to help with SEO, and also to improve site speed which as I keep banging on about, is an important metric for Google.

This is probably the most technical of all the posts that make up my SEO primer, so by way of introduction, I’ll simply say the following are a variety of things within your site’s code that are helpful for optimisation. You may not be someone who ever touches your site’s code, but these are good things to know about so you can check your developer is doing their job right. 🙂

As much as I love spinning a good narrative, bullet points are going to be our friend in this piece.

  1. Meta tags.
    I’m getting these out of the way early, because they’re controversial. That’s because the way these are used is often misunderstood owing to historical changes. Basically, they used to be really important, and the first thing old-school search engines looked at. Then the spiders got more clever, and started to look to make sure your page’s text contained all the keywords you were using in the meta. Then they realised they could do away with the meta and just scan your text. For this reason, a lot of SEO (ahem) “experts” will tell you they’re not necessary. That’s bulls**t basically.
    This page
    documents Google’s use of the “description” tag, which they do look at and use. Other search engines use them in varying ways too. The description and keyword (and author!) tags are all worth using, and using well. Make sure they tie-in with your copy.
  2. Alt tags.
    Search engines are certainly getting better at seeing what your site’s images are, but it’s far from perfect. Alt tags are the things that let the browser know what your image is representing, and therefore really important for SEO. I always make sure that my images contain tags that say not only what the image is of, but also the name of the page/entry it’s appearing in. That way the page name is repeated in the code too, which boosts it’s importance within the page.
  3. nofollow.
    About 10 years ago, people had things called doorway pages that were nothing but links to other pages in their sites. It was a dirty trick and got stamped all over by the search engine gods. However, you know how WordPress in particular creates pages for monthly archives, category archives, even tag archives? Well funnily enough they look a lot to spiders like doorway pages, containing tonnes of links (including all the sidebar links) to pages that just link to other pages en masse. I’ve measured this myself, and yes, you will get penalised for them. I have most of my links on this site set up with the nofollow rule, meaning the good search engines (technically spiders don’t have to respect this rule, but the big boys all do) will not follow it and count it as a link.
    I want them to see all my pages, but not to see them all a hundred times. I opt to leave category links being followed, but NOT monthly archives or tags.
  4. minify.
    This is just a trick to get all the unnecessary spaces and characters out of your code. It’s particularly useful for javascript and CSS, but your output HTML is worth shrinking too. There are tools out there that do it at load time, but that can place a burden on your server. I love this tool which takes all your CSS and merges parts where it can, and will (if you ask it to) minify the hell out of it.
    If you keep the page load time down, Google will rank you up.
  5. Javascript at the bottom.
    Place all the Javascript you can at the bottom of your page’s code. Again, it’s a speed thing.
  6. Make it clean.
    Don’t use tables unless it’s for, you know, a table. CSS has reigned supreme for a long time now. Don’t repeat attributes within tags. Check for redundant code. Consider taking out all those comments you put in while you were coding the site in the first place. Basically, give your code a nice, long bath.

Technically, your code underpins everything. Make it Search Engine Optimisation friendly and you’ll be much better ranked for it.

Filed Under: Google, Hints & Tips, Keywords, Search Engine Optimisation (SEO), Tools, Website Speed, Wordpress

I’m currently working on a site called …

March 4, 2013 by Peter Mahoney

I’m currently working on a site called, “Massage me anywhere”.

I hope it means geographically.

Filed Under: Nerd-stream, Uncategorized Tagged With: funny, geography, sites, work

Show all images in a directory using PHP

March 1, 2013 by Peter Mahoney

This is a sweet script. It displays all the files in a particular directory. In this case it’s a folder full of user uploads, so it makes keeping an eye on things a breeze.

[sourcecode language=”php”]‘;
}
?>[/sourcecode]

You can of course easily modify it to show only JPGs or other image types (if you’re pulling content from a directory of mixed file types) or to edit the echo so it returns images that link to user profiles etc.

But this is it’s most basic form.

Filed Under: Nerd-stream, Uncategorized Tagged With: directory, display, folder, glob(), images, PHP

Feeling righteously ill today Ugh

March 1, 2013 by Peter Mahoney

Feeling righteously ill today. Ugh.

Filed Under: Nerd-stream, Uncategorized Tagged With: ill

  • « Previous Page
  • 1
  • …
  • 49
  • 50
  • 51
  • 52
  • 53
  • …
  • 62
  • Next Page »

Get FREE Wordpress SEO tips!

I send regular newsletters with WordPress SEO expert-level tips. Sign up to get them, along with my FREE e-book “Ongoing SEO Success”.

Did I mention they’re free!

Subscribe for free

Praise

I have over 2,500 5-star feedback reviews (and I’ve never received less than the full five.)

Here’s just one example, from Mike who runs Costello Entertainments:

Migration, Hosting, SEO and Speed Work on our new website all completed quickly and efficiently and Peter was most helpful in fixing an issue with a Popover on the site as well. If you’re thinking about asking Peter to do a job for you or hesitating, JUST DO IT! – He knows programming and the internet inside out, he’ll get the job done for you professionally, with a smile. I wish I could call a plumber or a tradesman to do the jobs I can’t do myself with the same level of confidence.
Read a lot more.

Recent Blogs

  • How do I make the most of AI search optimisation?
    Thank you for sharing the recent update. I’m in the early stages of planning for the upcoming year, and with ...
  • AI Search (also known as GEO) – the biggest change in SEO & search since Google launched
    Keeping ahead of the AI component of search is essential – and I am actively managing this for my clients. I ...
  • Outreach for backlinks – how to get quality links that Google will love
    I’m thinking of redirecting my Virtual Assistant work to other tasks as the generic LinkedIn work I ...
  • (Small) Pricing changes for 2025
    When COVID first hit, like a lot of people around the world I wanted to help my clients as much as possible ...

Legal

  • Terms and conditions
  • Privacy policy
  • Disclaimer

Prices are quoted exclusive of VAT unless expressly stated.

Also read

  • Payment information

RSS

Peter Mahoney, WordPress SEO expert blog

Recent Posts

  • How do I make the most of AI search optimisation?
  • AI Search (also known as GEO) – the biggest change in SEO & search since Google launched
  • Outreach for backlinks – how to get quality links that Google will love
  • (Small) Pricing changes for 2025
  • My site has errors – timeouts – and my host isn’t helping me

© Copyright 2025 SEO & AI Search (GEO) Expert · All Rights Reserved · Site by Peter Mahoney