Browsed by
Category: web

Exclude pages from search results in WordPress

Exclude pages from search results in WordPress

My blog has a Mac section. This Mac section is a page with one article which contains all the software. When someone uses the search functionality from this blog, and searches for VPN the whole Mac section appears in the search results which is pretty annoying. This website explains how to exclude all pages from the search results.

  1. Open your WordPress admin
  2. Goto Appearance
  3. Click on Editor in the Appearance menu
  4. On the right side of the pages click on theme functions
  5. Add the following code to this section
function vibeExcludePages($query) {
if ($query->is_search) {
$query->set('post_type', 'post');
}
return $query;
}
add_filter('pre_get_posts','vibeExcludePages');
How to create a font from your own handwriting

How to create a font from your own handwriting

Fontcapture is an awesome webtool. What it does? It does create your own handwriting font in some very simple steps. First you download a template. You print this template and write all the characters specified on it. Then you scan your template and upload it to Fontcapture. Fontcapture processes your handwriting and offers you a ttf file for download. See the image below for my very own OsiWrite font.

My own handwriting as a font
My own handwriting as a font
Remove “An automated WordPress update has failed to complete” message

Remove “An automated WordPress update has failed to complete” message

This weekend I tried to autoupdate my blog to WordPress 2.8. This failed for some still unknown reason. Since this fail I was stuck with the following message in my admin page: “An automated WordPress update has failed to complete”.

I decided to update WordPress manually but the message kept in place. It turned out that I needed to remove a file called “.maintenance” from the website root directory. Finally the message disappeared 🙂

Picture 4