From your code, this is the part where you can get the mark, modified to get only one:
$member_id = get_current_user_id();
$course_id = 1; //i am assuming the ID of the course
$status = get_user_course_status($member_id,$course_id);
if($status > 3){
$mark = get_post_meta($course_id,$member_id, true);
echo $mark;
}
Related Posts:
- How to get all term meta for a taxonomy – getting term_meta for taxonomy
- Short of raw SQL, can I query for multiple attachment metadata that have a given array key?
- Triple meta_key on custom SELECT query
- Get updated post meta on save_post action?
- MySQL Query To Select Post By Postmeta
- Get a row from a separate table by matching a posts meta_key to a tables ID column
- Compare string with post id in wpdb and do stuff when match is found
- Read post meta values, only if posts are public
- How to test the outcome of a wpdb query?
- wpdb->get_var – count author posts, meta value
- How to query and update one colum in postmeta table?
- Display current ranking of post as a number in post title
- get specific values from WordPress meta_value
- Get data from custom table and update relative post_meta based on meta_key
- Get table parameter and save in meta value
- Exclude category from DB query
- Fetching array of postmeta with $wpdb and in_array conditional
- Which query method to use? (edit- wpdb syntax problems)
- Cache metadata for set of posts
- How to get all the related ids without array?
- Check if Post Title exists, Insert post if doesn’t, Add Incremental # to Meta if does
- Sanitizing integer input for update_post_meta
- Meta compare with date (stored as string) not working
- How to update/insert custom field(post meta) data with wordpress REST API?
- Front-end update_post_meta snippet displays white screen?
- How to get meta value in wp_attachment_metadata
- Clean up output added via wp_head()
- Get post from meta_key and meta_value
- get_post_meta returns bool(false)
- How to get custom post type to display post meta on archive pages?
- WP_POSTMETA changes site crash
- meta_post_meta return value 1
- How to use post_id with a Class?
- get_post_meta remains empty while looping all menu items and using the ID
- Set default Custom Post Meta Value
- How to stop wp_postmeta from being called on archive and search pages?
- INSERT ON DUPLICATE KEY UPDATE failes in postmeta table
- Set Checkbox as checked by default
- replacing the_autor or make callback
- Some post meta fields stop saving after a few successful saves
- Custom post meta values reset by autosave [duplicate]
- Compare meta_query with a Regular Expression and do a less-than operation on it
- Is it possible to retrieve a post and its metadata at the same time?
- cleaning up safely wordpress wp_postmeta table
- Post meta as array looks like string instead of array
- Why does get_transient() always return string even if integer set?
- Author_meta ONLY if it exists
- Time & Date on Post – Time Ago Custom Function
- Mass removing CSS from 1,700 post [closed]
- Migrating meta value to new meta value
- Is there a way to disable post meta caching for development?
- Correct meta of Writing Meta Tags
- Retrieve user_meta and copy to post_meta
- update_post_meta not working?
- Change wordpress meta tag description using WP functions
- Cant create or update meta fields using WordPress REST API
- Filter posts by meta key
- delete duplicates wp_postmeta
- Post Thumbnail missing when using webp format while sharing
- Bulk Update Post Meta Values from Different Post via Rest Api
- update_post_meta() is not saving the value
- Only show meta on one post type on search results page
- How to register post meta with multi level arrays?
- How to exclude posts by meta key value in the_post_navigation next prev links?
- If I disable screen options, does WP still try to update post meta?
- update_post_meta not working with transition_comment_status
- Can we have duplicate key pair values in post meta data?
- I created a Custom Meta Box but it is not displaying the value on my post page
- Meta data being pulled from wp-login.php
- Attachment metadata has value of ‘1’
- Get post content before rendering
- wp_insert_post inside save_post adds wrong metadata to inserted post
- Rename image filename using ‘media_handle_upload’
- How do I update a specific value within array in a products metadata?
- Update Post metafield of specific categories
- Optimize WP Meta Query for large amount of post meta?
- Using Self Hosted Video URL With Custom Fields
- Multiple postmeta values to the same post_id/meta_key combination?
- get_post_meta not work in php foreach
- Why are my custom metaboxes not updating the post meta?
- Problem serializing single quote and double quote into post meta
- Storing post_meta fields in array
- Performace on 1 million plus meta fields vs 1 field with 1 million multi array
- Query postmeta values, and return multiple post_titles for common meta value
- Hide the_meta if no value
- Piklist File Upload
- php wp_insert data on front using a form
- Updating post_meta when updating a setting with the Settings API
- How to show specific meta keys of all posts in admin panel?
- how to echo/display the custom field value in specific custom field name?
- update_post_meta() not working in bulk option
- How to update the ‘modified_time’ of a post ONLY when content is changed?
- Media library orphans
- Multiple If else statements on Search Result Page
- Adding an orderby filter, casting postmeta with multiple keys
- How to make certain content of the post noindex and no follow. not entire post?
- get_children filter with postmeta
- Auto save title as custom meta field value
- wordpress query making site very slow
- if condition from post_meta not working in save_post