Think about how extra details about a post help users and the system.
Metadata adds useful details about content, such as author, date, categories, and custom fields. This helps WordPress organize, filter, and display content in meaningful ways.
Consider how you can find posts with specific tags or custom data.
Metadata lets WordPress filter and sort posts based on extra information, such as custom fields or tags, making queries more flexible and powerful.
Think about how WordPress themes control what content is shown.
Custom metadata must be explicitly added to the theme templates to show on the front-end. Without template code, metadata is stored but not displayed.
Check the WordPress function name and parameter order.
The correct function is add_post_meta(post_id, meta_key, meta_value). Option C uses this correctly.
echo get_post_meta(10, 'rating', true);
echo get_post_meta(10, 'rating', true);
Remember the third parameter controls the return type.
With the third parameter true, get_post_meta returns the single metadata value as a string, here '5'.