Adding Custom posts, fields and taxonomy through a plugin | Part 4 of Custom Field Tutorial

Do you want better
IT Services ?

Let our experts help you navigate the digital world with tailor-made IT Solutions!

Introduction –> Adding Custom Fields –> Displaying Custom fields  –> Doing through Plugin


Custom Post. Field and Taxonomy Plugin | Types | Tutorial | Download Link

Link to Official Website – wp-types.com

Part 4 of Custom Field Tutorial

We learned how to add and display custom fields in the previous parts of this tutorial and now we are going to add custom fields via a plugin Types.

With the help of the plugin you will be able to add Custom Post types, Custom Fields and Custom Taxonomy.

Below is the video explaining how to use this plugin.

Introduction to Types from Amir Helzer on Vimeo.

However one thing is worthy to note, to display custom fields, you need to add the same code in loop , exactly the same way you did in the previous part of this tutorial. I am again writing the content below for your ease.

<?php echo get_post_meta($post->ID,'key',true); ?>

 

WordPress Training in Delhi – Online training also also available / Call 9540491178 / 9812430938

We need to change the key to key name which he has entered while creating the field. The above code will display the value of the custom field added and not the key or Name. So I am doing a proper formatting to display the key name as well as the value.

<?php echo "Theme Code:".get_post_meta($post->ID,'ThemeCode',true). "<br>"; ?></p>

Thanks for reading the tutorial on Custom fields, I hope you enjoyed learning.

If you found the content worthy, post a comment or follow me via links below on facebook and google plus.

Introduction –> Adding Custom Fields –> Displaying Custom fields  –> Doing through Plugin


Some external resource to learn about WordPress custom fields and Wp-types plugin.

Learn Wp-Types – Official Website learn page

Wp-Types Review by Yoast.com with practical demo

http://www.wpmayor.com/step-by-step/the-best-wordpress-custom-post-type-plugins-types-and-views/

http://wpmu.org/new-wordpress-plugin-makes-wordpress-theming-easy/

About the author :

Anirudh Babbar belongs to India and loves to write on wordpress and web development. He has his office in New Delhi, where he provides training on worpdress, drupal and php.

Scroll to Top