1

The function second parameter is the "$post_id". Ref. http://simple-fields.com/documentation/api/getting-values/simple_fields_value/ simple_fields_value("simple_field_slug", $post_id)


1

Ref. https://codex.wordpress.org/Plugin_API/Action_Reference/manage_posts_custom_column Just use the WP built in action called "manage_posts_custom_column" and in callback check for the correct column and add simple_field value with the function simple_fields_value : add_action( 'manage_posts_custom_column' , 'add_new_column_data_in_posts', 10, ...


1

The correct query is: $args1 = array( 'showposts' => 5, 'ignore_sticky_posts' => 1, //ORDER ARGUMENTS 'meta_key' => 'post_views_count', 'orderby' => 'meta_key_num', 'order' => 'DESC', //META QUERY 'meta_query' => array( array( 'key' =>...


1

You cannot sort inside a meta_query. The sorting parameters are invalid inside the meta_query. You will need to move the sorting parameters to outside the meta_query and remember to set the meta_key which will be used for sorting References: WP_Query Custom Field Parameters WP_Query Order and Orderby Parameters


1

You're calling wp_get_attachment_image_src() without further arguments. The second argument is the size and it defaults to thumbnail. See source: wp_get_attachment_image_src( $attachment_id, $size = 'thumbnail', $icon = false )


Only top voted, non community-wiki answers of a minimum length are eligible