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.
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
Post a Comment