{"id":1024,"date":"2018-01-14T16:16:38","date_gmt":"2018-01-14T16:16:38","guid":{"rendered":"https:\/\/www.s-sols.com\/?post_type=doc&#038;p=1024"},"modified":"2022-09-15T12:20:08","modified_gmt":"2022-09-15T12:20:08","slug":"how-to-set-or-add-attribute-in-document","status":"publish","type":"doc","link":"https:\/\/www.s-sols.com\/docs\/wordpress\/post-docx-source\/getting-started-pds\/how-to-set-or-add-attribute-in-document","title":{"rendered":"How to set or add an attribute in a document Post .DOCX Source for WordPress"},"content":{"rendered":"<p>\n  Attributes are used to specify some properties related to WordPress content. E.g. it may be an SEO title, tags, or featured image.\n<\/p>\n<p>\n  As is mentioned <a href=\".\/body\">here<\/a>, the top content of the document (.DOCX) is used for the body. Other document contents that begin with strings marked as Word\u2019s style \u201c<strong>Separate Attribute<\/strong>\u201d (it should be created if necessary) or \u201c<strong>Title<\/strong>\u201d for Google Docs can be used to set other attributes if the special option is enabled (see the picture below).\n<\/p>\n<p style=\"text-align:center\">\n  <img decoding=\"async\" src=\"\/data\/content\/doc\/wordpress\/post-docx-source\/how-to-set-or-add-attribute-in-document\/attribute-option-en.png\" alt=\"attribute-option\" title=\"attribute-option - How to set or add an attribute in a document\" \/>\n<\/p>\n<h2><a id=\"mark_as_attribute\"><\/a>Available attributes<br \/>\n<\/h2>\n<ul>\n<li><a href=\".\/title\">Title<\/a>\n  <\/li>\n<li><a href=\".\/excerpt\">Excerpt<\/a>\n  <\/li>\n<li><a href=\".\/slug\">Slug<\/a>\n  <\/li>\n<li><a href=\".\/tags\">Tags<\/a>\n  <\/li>\n<li><a href=\".\/categories\">Categories<\/a>\n  <\/li>\n<li><a href=\".\/seo-title-and-description\">SEO title and description<\/a>\n  <\/li>\n<li><a href=\".\/featured-image\">Featured image<\/a>\n  <\/li>\n<li><a href=\".\/woo-gallery-images\">WooCommerce product gallery images<\/a>\n  <\/li>\n<li><a href=\".\/date\">Publishing date<\/a>\n  <\/li>\n<li><a href=\".\/language\">Language<\/a>\n  <\/li>\n<li><a href=\".\/post-parent-pds\">Parent<\/a>\n  <\/li>\n<li><a href=\".\/post-order-pds\">Order<\/a>\n  <\/li>\n<li><a href=\".\/post-status-pds\">Status<\/a>\n  <\/li>\n<li><a href=\".\/custom-attributes\">Custom attributes<\/a>\n  <\/li>\n<\/ul>\n<h2>\n  Mark body block as an attribute<br \/>\n<\/h2>\n<p>\n  To add or set an attribute, we should <strong>type its name in a new string<\/strong> and <strong>mark<\/strong> it with Word\u2019s style \u201c<strong>Separate Attribute<\/strong>\u201d or \u201c<strong>Title<\/strong>\u201d for Google Docs. So, the below content will be automatically applied to that attribute until meeting the next attribute or end of the document. See the picture below.\n<\/p>\n<p style=\"text-align:center\">\n  <img decoding=\"async\" src=\"\/data\/content\/doc\/wordpress\/post-docx-source\/how-to-set-or-add-attribute-in-document\/attribute-mark-en.png\" alt=\"attribute-mark\" title=\"attribute-mark - How to set or add an attribute in a document\" \/>\n<\/p>\n<h2>\n  Mark as an attribute lovely<br \/>\n<\/h2>\n<p>\n  The name of the attribute can be typed by using the exact particular attribute name (e.g. <strong>tags<\/strong> or <strong>seo_title<\/strong>), or it can be typed by any text that we like but it should be bookmarked with a particular attribute name mentioned above. See the picture below.\n<\/p>\n<p style=\"text-align:center\">\n  <img decoding=\"async\" src=\"\/data\/content\/doc\/wordpress\/post-docx-source\/how-to-set-or-add-attribute-in-document\/attribute-name-options-en.png\" alt=\"attribute-name-options\" title=\"attribute-name-options - How to set or add an attribute in a document\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Attributes are used to specify some properties related to WordPress content. E.g. it may be an SEO title, tags, or featured image. As is mentioned here, the top content of the document (.DOCX) is used for the body. Other document contents that begin with strings marked as Word\u2019s style \u201cSeparate Attribute\u201d (it should be created&#8230;<\/p>\n","protected":false},"author":18,"featured_media":0,"parent":1023,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"rank_math_lock_modified_date":false},"categories":[113],"tags":[193],"class_list":["post-1024","doc","type-doc","status-publish","hentry","category-post-docx-source","tag-post-attribute"],"_links":{"self":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/doc\/1024","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/types\/doc"}],"author":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/comments?post=1024"}],"up":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/doc\/1023"}],"wp:attachment":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/media?parent=1024"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/categories?post=1024"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/tags?post=1024"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}