WordPress Meta Box

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9


Simple usage of a Meta Box in the wp-admin content editors


  • _x( 'Text', 'Description', 'textdomain') is used to add a description for the translation service instead of __( 'Text', 'textdomain') which is just the translation
  • _ex( 'Text', 'Description', 'textdomain') is used to echo translated text with a description


The content inside the render meta box can be anything. Instead of the values being directly integrated, you can also use an include with a PHP template and use set_query_var method to pass data to it. The save would work the same way.

Got any WordPress Question?