From 5d4d85a69faa27ff56c8d4cf97974bb5a55c0256 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Thu, 11 Feb 2021 14:23:58 +0000 Subject: [PATCH] Add internal links to post meta --- template-parts/content-single.php | 32 ++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/template-parts/content-single.php b/template-parts/content-single.php index a0390fc..8ac3a06 100644 --- a/template-parts/content-single.php +++ b/template-parts/content-single.php @@ -138,13 +138,31 @@ - +
-

External Link 1 ) ? 's' : ''; ?>

- + +

Internal Link 1 ) ? 's' : ''; ?>

+ + 1 ) ? wp_kses_post( $split_link[0] ) : 'Link'; + $link_href = ( count( $split_link ) > 1 ) ? $split_link[1] : $split_link[0]; + ?> + + + + + + + +

External Link 1 ) ? 's' : ''; ?>

+ 1 ) ? wp_kses_post( $split_link[0] ) : 'Link'; @@ -154,8 +172,8 @@ -
+