Auto refreshing pages on WordPress

Tweet Blender is a great plug-in for Wordpress that allows to show relevant tweets that can be searched by user name, #hastags or keywords.  Apart from the widgets that can add twitter feeds to the sidebar there is an interesting archive page.  Last year during an event we wanted to show our website while the party developed and we encourage people to tweet about the party itself.  Main downside of the archive page is that is a standard, static page and in order to see updates you need to reload it (e.g. refresh it). In order to make this page auto refreshing you can add a little script to the header so that when the archive page is displayed it gets reloaded every so often (in this specific case 30 seconds).  This piece of code must be added in the <head> section as follows:
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<?php 
if ( is_page_template( 'twitter-archive.php'  Continue reading 					

The myth around cheap WordPress based websites

Wordpress is free and simple.  That means that if you are tech savvy, have a webserver with both PHP and MySQL enabled and understand how to set the whole thing up you can have an online presence within minutes.  I know how to do it as I have done it many times. Wordpress offers even a vast array of free plug-ins that provide you with literally thousands of different functions as well as themes that allow you to “dress” your website literally as you like.  If you are willing to invest a few tens of pounds (or dollars/euro), you can buy a premium theme from a place like ThemeForest and enjoy a highly customizable theme.  These are usually great solutions for simple personal websites or blogs; problems start when people believe in the myth of free (or very cheap) Wordpress based website. What I describe above is true if you know and understand where all these little pieces of software Continue reading

Subpage highlight in WordPress

When you have a set of pages that are subpages of a main page (e.g. the case of this website for a complementary health clinic) you may want an automated system that creates a highlight among its subpages. We used this to create a practitioners' highlight page that, every time it gets loaded, shows a different practitioner's profile.  By changing just one parameter it'd be possible to do multiple highlights and show 3 or more profiles at once. As we previously showed there is a simple way of defining a new template that, based on the standard page template, shows content  of one, single and random subpage instead of the page content.  We use the gaet_Query() function that Continue reading

Subpages directory in WordPress

When you have a set of pages that are subpages of a main page (e.g. the case of this website for a complementary health clinic) you may want an automated system that creates a list (or directory) of subpages and avoid double editing when you add or modify a subpage. We used this to create a practitioners' page that list all practioners in the clinic. There is a simple way of defining a new template that, based on the standard page template, adds the list of subpages under the page content.  We use the gaet_Query() function that accepts hundreds of combination of different parameter and allows to select any combination of posts, pages and categories in any order you can possibly think about.  Here is a sample of the code to be added immediately after the page loop Continue reading