CMS WordPress you can assign custom field to a post.
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); ?>
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 |
This comment has been removed by a blog administrator.
ReplyDeleteWow, so thankful! funtime inflatables
ReplyDeleteSpeaking about storage and online data. There is a thing called virtual data room reviews, it keeps your documents securely stored online.
ReplyDelete