WordPress Fixes: Showing content – not excerpt in searches.

Came across this one and it took a little tracking down to fix - so in case someone else has this issue - heres how i fixed it 😉

Came across this one and it took a little tracking down to fix – so in case someone else has this issue – here’s how I fixed it 😉

The Problem…

Search result pages in WordPress are showing a generated snippet from the post content, not the excerpt.   After confirming that the post does indeed have a custom excerpt specified for it, here’s what I did next…

the_excerpt()

First thing to do is the check is that you are using the_excerpt() in your template.  Look in your /wp-content/themes/[yourtheme] folder for search.php or if that’s not there – index.php.

In that file find the wordpress loop – it’ll start like this…
while (have_posts()) : the_post();

Make sure it has the_excerpt(); not the_content();, it could be like this

<?php if (is_archive() || is_search()) { ?>
    <?php the_excerpt(); ?>
<?php } else { ?>
    <?php the_content(); ?>
<?php } ?>

If you can see the_excerpt() – chances are you have the right template.

Plugins…

Once you’ve confirmed the templates is correct and the post has an excerpt, then you need start disabling plugins.
If possible turn them all off – then enable one at a time till you find the offender.
If it still happens with all plugins disabled, then its definitely your theme that’s to blame.

For me..

In my case the problem turned out to be (obviously with hindsight) Relevanssi. Relevanssi has an option to reformat your search result content to show the relevant result. This most likely results in a part of the content being shown – not the excerpt you specified. Its just a tickbox away to fix (Create custom search result snippets) 😉

Hope this helps save someone some time debugging!

Asus Transformer TF301F Review

Having played with the first model in the Asus Transformer series, I was eager to get my hands on the latest model to see how it performed...


The Geeky Bit

  • OS: Android 4.0.1 Ice Cream Sandwich (ICS)
  • Processor: Quad Core Nvidia Tegra 3 – 1.2GHz
  • Memory: 1GB DDR3
  • Storage: 32GB (16GB Models available)
  • Screen: 10.1″ WXGA (1280 × 800) IPS
  • Sensors: G-Sensor, Light Sensor, Gyroscope, E-compass, GPS
  • Radios: 8.2.11 b/g/n WiFi, Bluetooth 3.0
  • Cameras: 8MP AF rear, 1.2MP front
  • Size: Pad – 263 × 180.8 × 9.9mm , Dock – 263 ×180.8 × 10.2 mm
  • Weight: 635g (pad) + 546g (dock)
  • Connectors:
    • Pad:
      • 2-in-1 Audio Jack (head-out + MIC-in)
      • 1 x micro-D HDMI 1.4a port
      • 1 x microSD Card Reader (SDXC)
    • Dock:
      • 1 x USB 2.0 (Low Power)
      • 1 x SD Card Reader (SDXC)

Having played with the first model in the Asus Transformer series, I was eager to get my hands on the latest model to see how it performed.

This particular machine was purchased from PC World, who seemed to be the only UK stockist at the time of purchase.  I must mention here that regardless of PC World’s somewhat lacklustre reputation at times, reserving online was simple and I just turned up and collected it easily with no fuss.

So what exactly is it?

I’m not quite sure that it knows what it is itself!  The transformer is a tablet similar to the Apple iPad, Blackberry PlayBook or Kindle Fire…  but it comes with a keyboard dock that ‘transforms’ it into a notebook – and boosts the battery life as a bonus extra!

The housing is plastic – but it doesn’t feel cheap. It’s well built and feels solid. The slight pattern on the back helps give some grip when holding it.

Without the dock it’s very hard not to draw comparisons with the iPad.  However, these are comparisons that go favourably for the Transformer. No apparent slow-downs no matter what apps and videos I threw at it, and even when a misbehaving app was encountered (Chrome Beta for those who need to know!) it quickly let me know and let me shut it down rather than having to sit and wait.

There was a bit of a redraw effect when resizing web pages, but these appear to be Android issues and not due to the tablet. Chrome Beta was a little better – but I think it’s beta for a reason – it seems to lock up a fair amount. Still, if browsing is your thing there’s plenty of choice in the Android Market. Oops sorry, “Google Play” as it is now 😉

Most impressive was when I tested SplashTop HD. This remote desktop software works really well. Surprisingly, I was able to play desktop games like Portal 2, Mass Effect and MineCraft in full screen, remotely, with no lag over the inhouse wireless network.

For those iPad users out there daunted by Android, don’t worry. Android 4.0 is just as intuitive and easy to use as iOS, but not quite as restrictive with regards to what you can run on it. Therefore, emulators (anyone for some classic C64 games?), Flash and lots more can all be found here!

Overall it’s a good pad and probably more versatile than an iPad. However , when you attach the keyboard you now have a notebook; or are we supposed to call then netbooks now? I can never remember…

The keyboard connects via a 40 pin connector & two hooks and feels incredibly secure. It’s clear that attention has been paid to the docking mechanism. My only gripes are that it’s tricky to detach the keyboard whilst closed, and as most of the weight is in the pad itself, the centre of balance is way off. This makes it want to tip back, especially when you’re trying to use it in your lap.

They keyboard is small as you’d expect, but quite well constructed and responsive. The trackpad is superior to some laptop trackpads, and once you’ve got the hand of using trackpad, mouse and touch together you’ll find yourself mistakenly trying it on regular laptops too 😉

Best of all the keyboard has an integral battery giving an extra 5 hours battery life. With a basic 10 hours for the tablet alone, this gives Transformer probably the longest battery life available in a tablet, erm, netbook, erm whatever it is!

So who is this for?

Good question.

Tablets fit into a niche for people who want to remain connected and manage emails, browse the net a little, plan their calendars and the like but don’t want to lug a laptop around. The Transformer fills the same niche – but with the option to be just that little bit more. If you’re the kind of person who has or would buy a Bluetooth keyboard for your pad then this is for you.

Price wise – the Transformer is comparable to an basic iPad 3, but with better battery life, more storage capacity and a keyboard – but at the expense of the amazing retina screen. That said, the Transformer’s display is higher resolution than that of the iPad 2.

Pros & Cons

So down to the basics…

Pros

Performance: It does everything you throw at it.
Price: At £399 you get a lot of tech for your money.
15 hour battery life: This is really not to be sniffed at. Even on the performance setting I was getting 12 hours of use between charges.
OS: Asus haven’t messed about with Android, this Ice Cream Sandwich is definitely vanilla flavoured. The bundled apps can be uninstalled if you want to, which means you don’t get the usual suppliers bloatware.

Cons

Weight: With the keyboard attached its nearly twice the weight of a typical tablet alone – weighing in at nearly 1.2kg – and with the weight mostly at the rear it does tend to tip back in use if you’re not careful. Just the pad alone however is comparable to other 10.1″ tablets.
Browser: As mentioned before, the only lack of fluidity becomes apparent when browsing. Screen redraws, whilst brief, can be seen. Hopefully future updates to Android will nail this quirk.
Screen: The screen is ‘only’ IPS not IPS+ – so in bright sunlight you may have to pump up the brightness – but with those extra 5 hours of battery life – this isn’t too much of a problem.

Where to get

Currently here in the UK you can only get the Transformer from PC World/Dixons/Currys (why, essentially, the same shop goes by 3 different names is still a mystery to me!).

In summary…

It’s powerful, good value for money and versatile. I’d recommend this wholeheartedly to anyone looking to fill that portable tech niche. 9/10.

Joining Imagiscape

Lots of new things happening in the world of Sabletopia.

Firstly I’ve joinned the team at ImagiScape as one of their plugin developers.  Already my first plugin for them (ZombieMod) is providing several different flavours of zombie for their Zombie Apocalypse server.  I’m also working on bringing the wiki uptodate 🙂

Sabletopia has now moved over to join with my plugin testing server, so it’ll have lots of new weird things.  Already it has a new flatlands WorldGenerator, and I’m testing Cityword to see if I can make it more apocalyptic so we can have an infinite MmineCraft city!

Existing projects continue – MobHealth is now on version 4.8.2 (4.8.3 is coming out soon).  And my super secret project is still, well.. secret but progressing well 😉

WoodDye / Impact and more!

Spate of new Minecraft/Bukkit plugins have joined the ranks at http://dev.bukkit.org/profiles/sablednah

WoodDye:
Change the colour of already placed wood.

Impact:
Leave behind impact craters.  the bigger the fall the bigger the hole.

ChatFilter:
Now has a whole load of tweaks and options – bit still remains a simple to setup and use family filter.

 

You can find out more about each plugin on the relevant plugin pages at dev.bukkit.org 🙂  Over the next few weeks each will get some tweeks – ChatFilter will get some extra filtering to spot common ways of hiding words…  WoodDye will extend to half-blocks and fire-proofing as soon as the snapshots are released 🙂

 

In the beginning…

So how do you start on of these things?

Just trying to make this blog the generic dumping ground for my writings, not that they are exactly prolific at the moment.

Gonna dump coding news/snippets and tips into the coding section – more personal stuff here, and probably make a new sections for Reviews, and for Sabletopia – the Bukkit Minecraft server I’m running.

MobHealth – v2.3

So MobHealth is doing well – latest version has got over 2k downloads in <4days.  It seams like the contaversial process of  thorough testing, frequent releases, and shock horror – listening to feedback works!!

Working on adding options to switch between showing notifications for animals, monsters and players. Or any combination of those three.

Then it’ll be digging into 3rd party mobs for hooking in.

All in all with nearly 4k downloads for all version – you’d have thought someone might have clicked the download link (~nudge nudge wink wink~).   If only there was a way to actually make money from these newfound java skilz!