Escaping characters with backslash.
-
Hello, Pierre-Henri Lavigne and the community.
My post, written in Markdown, renders the syntax perfectly in preview mode, the screenshot below.

However, when I publish the post, some of my content is treated as HTML and doesn’t appear at all.
ACF turned on, screentshot below.

ACF turned off, screenshot below.

Here’s my single.php template code.
<?php get_header();?>
<p><button onclick="location.href='<?php echo home_url();?>'">HOME ๐ </button>
<button onclick="history.back()">BACK ๐</button>
<!-- history.back() to be improved -->
</p>
<!-- <h1>This is a SINGLE.php for EN NOTES & BLOGS -->
<div class="cont">
this is SINGLE.php file
<?php if( have_posts() ): while( have_posts() ): the_post();?>
<?php echo the_content();?>
<?php endwhile; else: endif;?>
</div>
<?php get_footer();?>Here’s my header.php template.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- REMOVES SAFARI PHONE NUMBER DETECTION -->
<meta name="format-detection" content="telephone=no">
<title>๐ RUSTAM JAFARSKY</title>
</head>
<body>
<header>
<p>IN THE NAME OF GOD, THE MOST GRACIOUS, THE MOST MERCIFUL</p>
<?php wp_head();?>
<hr/>
<?php get_search_form();?>
</header>I would like the published version of the post to match the content shown in the preview.
Thank you very much.
The page I need help with: [log in to see the link]
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Escaping characters with backslash.’ is closed to new replies.