2019-03-16, 00:47:24
(2019-03-15, 23:28:23)acenda Wrote: Hi Carlos. How can I use the post picture in og:image? Is there a way to print picture's url?
Thanks!
You can use nm_post_image_url() with optional parameters width, height, crop (see NM template tags (since 3.0))
Example (insert in your template's <head> section):
Code:
<?php if (nm_post_has_image()) { ?>
<meta property="og:image" content="<?php nm_post_image_url(640,480,1); ?>">
<?php } ?>