نعم يمكن اضافة علامات متا تاغ ( Meta tag ) لموقع ووردبريس بدون الحاجة لتنصيب اضافات السيو. قمت بكتابة اهم العلامات التي يجب أن تكون موجودة في كل موقع.
اذهب الى ملف header.php في الثيم في موقعك وابحث عن علامة Head . ثم قم بلصق الكود التالي اسفلها مباشرة. ويجب أن يكون كل الكود فوق علامة الاغلاق head أي كالتالي :
<head> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta charset="UTF-8"> <link rel="profile" href="https://gmpg.org/xfn/11"> <link rel="pingback" href="https://studyshoot.com/xmlrpc.php"> <meta name="propeller" content="a5f95c0352ecb1c9266f55c508b78d2d"> <meta property="fb:pages" content="738163516603289"> <title><?php the_title(); ?> <?php echo date('Y'); ?> | Studyshoot </title> <meta name="description" content="<?php echo wp_trim_words( the_excerpt(), 60 , ' ' );?> "> <meta name="robots" content="follow, index, max-snippet:-1, max-video-preview:-1, max-image-preview:large"> <link rel="canonical" href=" <?php the_permalink(); ?> "> <meta property="og:locale" content=" ar_AR "> <meta property="og:type" content="article"> <meta property="og:title" content="<?php the_title(); ?> <?php echo date('Y'); ?> "> <meta property="og:description" content="<?php echo wp_trim_words( the_excerpt(), 60 , ' ' );?>"> <meta property="og:url" content="<?php the_permalink(); ?> "> <meta property="og:site_name" content="STUDYSHOOT"> <meta property="article:publisher" content="https://www.facebook.com/Studyshoot.Co/"> <meta property="article:author" content="https://www.facebook.com/Studyshoot.Co/"> <meta property="og:updated_time" content=" <?php echo date('Y-m-d H:i:s'); ?> "> <meta property="fb:app_id" content="2501522096642394"> <?php $url = wp_get_attachment_url( get_post_thumbnail_id( ), ' ' ); ?> <meta property="og:image" content="<?php echo $url ?> "> <meta property="og:image:secure_url" content=" <?php echo $url ?>"> <meta property="og:image:width" content="1200"> <meta property="og:image:height" content="630"> <meta property="og:image:alt" content=" <?php the_title();?> "> <meta property="og:image:type" content="image/jpeg"> <meta name="twitter:card" content="summary"> <meta name="twitter:title" content=" <?php the_title(); ?>"> <meta name="twitter:description" content="<?php echo wp_trim_words( the_excerpt(), 25 , ' ' );?> "> <meta name="twitter:site" content="@AhmadAl10375548"> <meta name="twitter:creator" content="@ahmadal10375548"> <meta name="twitter:image" content=" <?php echo $url ?>"> <?php wp_head(); ?> </head>
اقرأ أيضاً : شرح Meta Description ، بالإضافة إلى كيفية كتابة وصف الميتا