Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- custom-field কে সর্ট কোড এর মাধ্যমে শো করানোর জন্যে ।।
- function field_func($atts) {
- global $post;
- $name = $atts['name'];
- if (empty($name)) return;
- return get_post_meta($post->ID, $name, true);
- }
- add_shortcode('field', 'field_func');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement