WP function : get_post_meta();

get_post_meta(); function has three parameter.
First parameter is for define page or post id.
We can statically define the first parameter or dynamically.

If we want to dynamically define the first parameter then we have use
another function which is get_the_ID().

In the second parameter we will choose a unique id and the third
parameter is Boolean (true/false). We will write true in the Boolean parameter.   

Comments

Popular posts from this blog

WP register_post_type() with custom CMB2 meta box

Git post receive setup at server for git push to the production from local machine