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

Blog, meet new blog. Play nice now.

February 21, 2013 by Peter Mahoney

Blog, meet new blog. Play nice now. Wordpress SEO & AI Search (GEO) ExpertI’ve been using this blog for pretty much everything I’ve wanted to post about (that wasn’t only suited for the bowels of Facebook) and a bunch of quite developer specific posts have been appearing, code snippets, really geeky tips, etc.

I’ve decided to keep this blog for bigger picture stuff that all my clients can benefit from. My coding tips, and the geekiest of my thoughts, live here now.

Filed Under: News

New blog, meet old blog. Play nice now.

February 21, 2013 by Peter Mahoney

I’ve been using my main blog, http://petermahoney.net/blog for pretty much everything I’ve wanted to post about (that wasn’t only suited for the bowels of Facebook) and a bunch of quite developer specific posts were appearing.

I’ve decided to keep that blog for bigger picture stuff that all my clients can benefit from. My coding tips, and the geekiest of my thoughts, live here now.

Filed Under: General, Nerd-stream Tagged With: blog, blogs, geekiest, petermahoney.net

Displaying code snippets easily

February 21, 2013 by Peter Mahoney

With the new site and all I’ve some CSS to get through.

I wanted to make the “pre” element work as a code snippet display for me, and needed a fix to get it to wrap text (since the “width” attribute has been defunct for some time).

Here’s the solution!

pre {
 background-color: #F2F2F2;
 padding: 5px 5px 5px 5px;
 white-space: pre-wrap;       /* css-3 */
 white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
 white-space: -pre-wrap;      /* Opera 4-6 */
 white-space: -o-pre-wrap;    /* Opera 7 */
 word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

Filed Under: Nerd-stream, Uncategorized Tagged With: code, CSS, snippets

Make a “Share on Twitter” link with URL and Hashtags

February 19, 2013 by Peter Mahoney

This is a little coding trick I get asked about quite a bit.

The link you have to make to share something to Twitter is quite simple:

http://twitter.com/share?text=text goes here

But getting a URL and hastag in there is a different matter. To be honest most developers do know how to include the URL, but hashtags have proved more elusive!

http://twitter.com/share?text=text goes here&url=http://url goes here&hashtags=hashtag1,hashtag2,hashtag3

Here’s an example to try out:

http://twitter.com/share?text=Here’s an awesome tip!&url=https://petermahoney.net/make-a-share-on-twitter-link-with-url-and-hashtags/&hashtags=peter,is,awesome

And that’s it!

Filed Under: Code, Nerd-stream Tagged With: hashtagnerdy, hastags, linking to twitter with hashtags, Twitter, url

Search Engine Optimisation (SEO), a primer

February 18, 2013 by Peter Mahoney

I’m starting a series on Search Engine Optimisation (SEO) to help explain a few key concepts, as well as helping guide you towards the right SEO expert. Ideally me of course, but whoever is telling you they’re an expert really should know how to cover more than the basics.

The number of people I see selling SEO services who really have no idea is appalling. (I’d say shocking, but there are a lot of opportunists out there!)

I’m going to break my series of SEO posts into the following sections:

  1. Code
  2. Site Speed
  3. Social integration
  4. Blogging
  5. Back-links and all other things link oriented

Naturally there is a lot of cross-over between them, but over the course of the series you’ll get a better idea of some key concepts, and some fairly original (but proven) ideas for their implementation.

All of course to get you more quality visitors!

Filed Under: Hints & Tips, Marketing, Search Engine Optimisation (SEO), Social networking, Website Speed

Website code template

February 13, 2013 by Peter Mahoney

This is for my fellow developers out there.

I have a small series of files I copy and paste whenever I’m about to start a new project, they have default templates for various files I use a lot. Like a header, footer, index page, blank stylesheet, and something called “top.php” that I use to open sessions and connect to databases.

There are also some of my standard folders pre-made too (with the correct server permissions) like “img” (images) and “upl” (uploads).

This was going to be last week’s #fridayfreebie, but here it is on a Wednesday instead.

This particular version is the one I use most commonly, and it’s set up for:

  • PHP
  • MySQL
  • HTML5
  • CSS (any version!)
  • and ideally a unix/linux based server, because it references the top level of the site as being “/”.

I’ve zipped it up to share! Feel free to do whatever you want with it—although there is a lot of Peter Mahoney specific stuff in there, so you might want to take that out. Unless of course you like giving me credit for your work. 🙂

HTML5 website template (.zip)

Filed Under: Code, Freebies, Nerd-stream Tagged With: #fridayfreebie, CSS, files, footer, header, html5, mysql, PHP, template, top.php, website template

  • « Previous Page
  • 1
  • …
  • 51
  • 52
  • 53
  • 54
  • 55
  • …
  • 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

  • Why search volume matters in your keyword strategy
    When planning an SEO strategy, one of the most important questions is not simply which words describe your ...
  • 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 ...

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

  • Why search volume matters in your keyword strategy
  • 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

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