Add og-image page
This commit is contained in:
1 parent
adf5cc7806
commit
5580d4b443
4 files changed
+31
-1
No files matched your search
@@ -0,0 +1,21 @@
|
||||
<?php get_header() ?>
|
||||
|
||||
<?php
|
||||
$post = get_post($_GET["pid"]);
|
||||
$author = get_the_author_meta('display_name', $post->post_author);
|
||||
?>
|
||||
|
||||
<main class="bg-lightGrey max-w-screen">
|
||||
<section class="wrapper-md h-screen h-[100dvh] flex flex-col justify-center items-center">
|
||||
<ul class="basic-select w-full">
|
||||
<li><h1 class="text-center"><?= $post->post_title ?></h1></li>
|
||||
<li class="px-size-0 text-size-2"><time><?= date("d/m/Y, H:i A", strtotime($post->post_date_gmt)) ?></time></li>
|
||||
<li class="px-size-0 text-size-2"><author>By <?= $author ?></author></li>
|
||||
</ul>
|
||||
<footer class="pt-size-2">
|
||||
LewisDale.dev
|
||||
</footer>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<?php get_footer() ?>
|
||||
Reference in new issue
Block a user