Friday, April 3, 2015

Wordpress Custom Field to a Post

CMS WordPress you can assign custom field to a post.
Meta-data is handled with key(is the name of the meta-data element) and value(is the information that will show meta-data list on each each post that is associated with) pairs. In a post you can use Keys more than once.
Function:
Add: add_post_meta();
Update: update_post_meta();
Delete: delete_post_meta();
Get Custom Valuse
- get_post_custom();
- get_post_custom_values();
- get_post_custom_keys()
Template Tags:
- the_mata();
- get_post_meta();
Using Custom Field Tool:
On the page and post edit admin site custom field are show by default. and you can create a new by click add new custom field enter name , key, value.

Display Custom Fields:
after add custom field to a post now you can show the custom field for each post or page by using function the_meta();  and other functions.
ex:
<?php the_meta(); ?>
<?php get_post_meta($post_id, $key, $single); ?>







*** Send mail Wrodpress function

3 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. Speaking about storage and online data. There is a thing called virtual data room reviews, it keeps your documents securely stored online.

    ReplyDelete