clubmate.fi

A good[ish] website

Web development blog, loads of UI and JavaScript topics

Obey the the natural flow of a website

When designing a website in Fireworks or Photoshop you should keep in mind how things fall on their places in a browser. Here’s a thought…

Get custom taxonomy term name on an archive page on WordPress

How to retrieve the term’s name when rendering a custom taxonomy route. If you’re viewing a normal Post category rendered via archive.php…

Advanced WordPress loop techniques

How to get posts only from a specific custom post type, or how to show posts only from a custom taxonomy. How to keep the original query…

Add an "edit post" link to front end of your WordPress site

There is an edit post button is already in the WordPress admin bar (not for archive view), but maybe you are like me, and don't like the…

Strip the protocol from a URL using PHP

Dealing with those pesky URL prefixes on a user based input case. For example, if you have a custom field in your WordPress post that is…

In Wordpress get post metadata when using wpalchemy class

Getting a post metadata values, when using the helpful wpalchemy class, differs a bit from the normal method. You may get acquainted to the…

Check if variable is empty in PHP

Part of the PHP basics series. Here we’ll use the empty() : But that’s kinda long way to do it. Many times it’s more handy to ask if it’s…

How to do a back link with JavaScript (and PHP)

Some users ignore the back button, maybe all of us every now and then. Sometimes a big and juicy BACK button gives you a nice "I’m not lost…

Add support for WordPress custom menus

Here's a quick snippet on how to add custom menus to WP. This piece of code goes into your themes functions.php file: Name the navigation…

Change the form field placeholder text color

Here’s how to change the placeholder text color on a form fields. Example HTML: The default look is something like this: And here’s the CSS…

  • © 2022 Antti Hiljá
  • About
  • All rights reserved yadda yadda.
  • I can put just about anything here, no one reads the footer anyways.
  • I love u!