How to Add a Custom meta Description in single.php
-
I want to add a meta description below the site title <h1> tag using the single.php
The description is called from meta tags of Rankmath using
echo get_post_meta($post->ID,'rank_math_description',true);
For example – https://www.digitbin.com/find-if-image-is-edited/ The post has a small meta description from rank math using the above code. – https://prnt.sc/197suur
I used
inc/views/post_layout.php
in the theme editor to add the above code below the post title/above-featured image but no results, please help.The page I need help with: [log in to see the link]
- The topic ‘How to Add a Custom meta Description in single.php’ is closed to new replies.