gravityview_get_entry() doesn’t work
https://docs.gravityview.co/article/211-opengraph-meta-tags-single-view-wordpress-seo-plugin
For me this code doesn’t work:
// Get Entry
$entry = gravityviewgetentry( $entry_id );
if (! $entry ) {
return $title;
}
Changing it to this fixes it:
// Get Entry
$entry = gravityviewgetentry( $entry_id, true, false );
if (! $entry ) {
return $title;
}
Additionally, your og:image code doesn’t work and I haven’t bothered to debug that!
1
vote
Debugging your code
shared this idea
Thanks for the heads-up! I’ve fixed the code in the doc.
For the `og:image` code, please contact support (support@gravityview.co) and we’ll help get that working!