How much does it cost to build a WordPress website?

WordPress as in the software that runs the site is free and open source. You can download it freely on wordpress.org but to host it somewhere a server and point the internet to it require a hosting space and a domain name which costs money.

There are free web hosting services which provide small amount of hosting space for free but they usually come with low end configuration and are not good enough to host any website which has more than few hits each day.  If you are just starting out then you can try them out but if you want to host your business or company website then we suggest you at least start with a Shared Hosting company.

Continue Reading “How much does it cost to build a WordPress website?”

How to display all custom fields (name AND value) in a post?

You are working on a custom WordPress theme that uses lots and lots of custom fields and you suddenly want to see what all custom fields are assigned to any post.  You can do by going into the dashboard of the site and editing the specific post but what if you want to show it on the front-end of site on the single post template?

What if you have tons of custom fields and just want to show them all on the single post without specifying specific custom field name/key?

In that case you can use the snippet below inside the post loop to show all the custom fields that are attached to a post:

<?php
$custom_fields = get_post_custom();

foreach ( $custom_fields as $field_key => $field_values ) {
	foreach ( $field_values as $key => $value )
		echo $field_key . ' - ' . $value . '<br />';
}
?>

Source