{"id":409133,"date":"2024-10-02T08:00:00","date_gmt":"2024-10-02T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/hamzaban\/"},"modified":"2024-10-02T18:59:00","modified_gmt":"2024-10-02T18:59:00","slug":"hamzaban","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/hamzaban\/","title":{"rendered":"Hamzaban \u2013 Hreflang Tag Generator for WordPress"},"content":{"rendered":"<p>Hamzaban is a plugin that helps you add and manage hreflang tags for your WordPress site. Hreflang tags are essential for SEO, especially for multilingual sites, as they tell search engines which language and regional URLs to serve to users based on their location and language preferences.<\/p>\n<h4>Features<\/h4>\n<ul>\n<li>Add hreflang tags to posts, pages, and custom post types.<\/li>\n<li>Manage hreflang tags through a simple meta box in the post editor.<\/li>\n<li>Display hreflang links in your theme\u2019s navigation menu.<\/li>\n<li>Option to enable or disable the display of hreflang links in the navigation menu through the plugin settings.<\/li>\n<\/ul>\n<h4>Usage<\/h4>\n<ol>\n<li>Activate the plugin through the \u2018Plugins\u2019 menu in WordPress.<\/li>\n<li>Go to the post or page editor, and you will see a meta box to add hreflang URLs and languages.<\/li>\n<li>Done! hreflang metatag will be added to your website pages head.<\/li>\n<li>You can use the provided function or template tag to display the hreflang links in your theme.<\/li>\n<\/ol>\n<h4>Display Hreflang Links in Theme<\/h4>\n<p>To display the <code>en<\/code> language URL in your theme, use the following code:<\/p>\n<pre><code>`php\n<\/code><\/pre>\n<p><?php<br \/>\nif ($hreflang = array_filter(get_post_meta(get_the_ID(), '_hamzaban_post_langs', true), function($lang) { return $lang['lang'] === 'en'; })) {<br \/>\n    $hreflang = reset($hreflang); \/\/ Get the first match<br \/>\n    echo '<a href=\"' . esc_url($hreflang['url']) . '\" rel=\"nofollow ugc\">\u2018 . __(\u2018English Version\u2019, \u2018hamzaban\u2019) . \u2018<\/a>\u2018;<br \/>\n}<br \/>\n?><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hamzaban Hreflang Tag Manager helps you manage hreflang tags for your multilingual WordPress site.<\/p>\n","protected":false},"author":65,"featured_media":409134,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Hamzaban \u2013 Hreflang Tag Generator for WordPress - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Hamzaban Hreflang Tag Manager helps you manage hreflang tags for your multilingual WordPress site."},"footnotes":""},"categories":[1],"tags":[18954,608,2022,17,433],"class_list":["post-409133","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-hreflang","tag-language","tag-meta-tags","tag-multilingual","tag-seo"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/409133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=409133"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/409133\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/409134"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=409133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=409133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=409133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}