To display 5 latest posts in each parent category of your WordPress blog, add the following code into the template that you want the result to appear. In our case, we added the following code into our 404 template page (404.php of current theme). Other places that you might want to display [...]
Here is how to create a custom archive page in WordPress just like the one you see on our blog.
1. Go to the current theme folder of your WordPress installation (wp-content/themes/*current theme*) and make sure you don’t already have archives.php in the folder
2. Create a new file called archives.php (or whatever file name [...]
Hello Little Girl is a cute, fresh and summery theme, featuring a little girl. The template was created originally for Website Templates. Main colors are blue, green, yellow and dark brown. It is a two-columns template with a sidebar on the right.
Features:
Search Engine Optimised
Useful 404 page with links to [...]
Google Search has recently introduced breadcrumbs in their Search Result Snippets replacing the URL displayed below the individual snippet. There are both advantages and disadvantages of this new feature. One immediate advantage that I see is if your search result snippet has a breadcrumb, your website will probably get more pageviews because [...]
In header.php file of my WordPress theme, I have the following code to display a different header image for different pages.
<?php
if (is_page(‘about’)) {
$image = ‘image_about.jpg’;
} else if (is_page(‘projects’)) {
$image = ‘image_projects.jpg’;
} else if (is_page(’services’)) {
[...]