Add og-image page
This commit is contained in:
1 parent
adf5cc7806
commit
5580d4b443
4 files changed
+31
-1
No files matched your search
@@ -6,6 +6,10 @@
|
||||
<link type="application/atom+xml" rel="alternate" href="<?php bloginfo('atom_url'); ?>" title="Lewis Dale's Blog" />
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<?php $ogImage = "https://coruscating-quokka-5a905d.netlify.app/" . urlencode(get_site_url() . "/og-image?pid=" . get_the_id()) . "/opengraph"; ?>
|
||||
<meta property="og:image" content="<?= $ogImage ?>" />
|
||||
<meta name="twitter:image" content="<?= $ogImage ?>" />
|
||||
</head>
|
||||
<body <?= body_class() ?>>
|
||||
<?php wp_body_open(); ?>
|
||||
Reference in new issue
Block a user