How to meta description get value from post?
Jump to Post
set a database field called metadescription then on page load do something like
<meta name="description" content="<?php echo $metadescription ?>">
then it will echo the description of each post when you call for it based on ID of post or how ever you have it generate...
All 2 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.