Get text from user and display it on page

go to your function php past this code function fb_add_custom_user_profile_fields( $user ) { ?> <h3><?php _e(‘Extra Profile Information’, ‘your_textdomain’); ?></h3> <table class=”form-table”> <tr> <th> <label for=”address”><?php _e(‘Address’, ‘your_textdomain’); ?> </label></th> <td> <input type=”text” name=”address” id=”address” value=”<?php echo esc_attr( get_the_author_meta( ‘address’, $user->ID ) ); ?>” class=”regular-text” /><br /> <span class=”description”><?php _e(‘Please enter your address.’, ‘your_textdomain’); ?></span> … Read more

Show custom field on attachment page?

If this is related to your other question then the custom field is attached to the post and not the attachment. You need to get the post ID of the post first then you can get the custom field. This should work. global $wp_query; $attachment_id = $wp_query->post->ID; $parent_id = get_post_field(‘post_parent’, $attachment_id); echo get_post_meta($parent_id, ‘my_custom_field’, true);

How to put forward a blog post

You can do this with Sticky Posts feature in WordPress. When you make a post sticky, it shows up above your new posts. As name suggests, that particular post will stick at top, first in the row for as long as you want. Sticky Posts is a feature introduced with Version 2.7. A check box … Read more

How to add a css class to custom field value?

It’s very similar to how you set / access theme options: http://codex.wordpress.org/Function_Reference/update_user_option setting: update_user_option( $user_id, $option_name, $newvalue, $global ) <- taken from wordpress codex. and getting : http://codex.wordpress.org/Function_Reference/get_user_option get_user_option(‘color_option’, $userID); To get your specific request fulfilled, you would need to find the user_option(s) and then append to the list via a plugin or theme customization

No result update a custom field using wp_schedule_event

It think that your problem is the you are passing the post ID as url parameter to facebook API: $url = get_the_ID(); Also, as get_posts return an array of post objects, you could use this code: $posts = get_posts(array(‘numberposts’ => -1) ); foreach($posts as $post) { $url = get_permalink( $post->ID ); $fbcount = json_decode( file_get_contents( … Read more