{"id":1279,"date":"2018-11-22T18:45:22","date_gmt":"2018-11-22T18:45:22","guid":{"rendered":"https:\/\/www.s-sols.com\/?post_type=doc&#038;p=1279"},"modified":"2022-09-15T11:08:56","modified_gmt":"2022-09-15T11:08:56","slug":"custom-attributes","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\/custom-attributes","title":{"rendered":"Custom attributes Post .DOCX Source for WordPress"},"content":{"rendered":"<p>\n  It is a non-standard post attribute that could come from the \u2018<a href=\"https:\/\/codex.wordpress.org\/Custom_Fields#Usage\" rel=\"nofollow noopener\" target=\"_blank\">post custom fields feature<\/a>\u2019 or other plugins that extend the post\u2019s <a href=\"https:\/\/codex.wordpress.org\/Custom_Fields#Function_Reference\" rel=\"nofollow noopener\" target=\"_blank\">meta-data<\/a>. The most known such plugins are custom fields providers, e.g. <a href=\"https:\/\/wordpress.org\/plugins\/meta-box\/\" rel=\"nofollow noopener\" target=\"_blank\">Meta Box \u2013 WordPress Custom Fields Framework<\/a>.\n<\/p>\n<p>\n  As a result, any custom fields have an ID and vale. So, these fields should be added as <a href=\".\/how-to-set-or-add-attribute-in-document\">separate body attribute<\/a> with name equals to that ID.\n<\/p>\n<p><strong>Note.<\/strong> All custom attributes are interpreted by default as HTML. To interpret it as a simple text it should be <a href=\".\/raw-html#content\">marked by \u2018Raw\u2019 style<\/a> as in the <a href=\"https:\/\/www.s-sols.com\/data\/products\/wordpress\/post-docx-source\/samples\/Main%20Sample.docx\">sample<\/a>.\n<\/p>\n<h2>\n  In-place edit mode<br \/>\n<\/h2>\n<p>\n  In <a href=\".\/in-place-mode\">in-place edit mode<\/a>, these attributes are set in the post\u2019s meta-data editors with the same ID.\n<\/p>\n<p><strong>Note:<\/strong> \u2018<a href=\"https:\/\/codex.wordpress.org\/Custom_Fields#Usage\" rel=\"nofollow noopener\" target=\"_blank\">post custom fields<\/a>\u2019 currently is not supported. If it is needed, please, <a href=\"mailto:support@s-sols.com\">write to us<\/a>.\n<\/p>\n<h2>\n  Direct mode<br \/>\n<\/h2>\n<p>\n  In <a href=\".\/direct-batch-mode\">direct\\batch mode<\/a>, these attributes are stored in the post\u2019s <a href=\"https:\/\/codex.wordpress.org\/Custom_Fields#Function_Reference\" rel=\"nofollow noopener\" target=\"_blank\">meta-data<\/a> with the same ID.\n<\/p>\n<p><strong>Note:<\/strong> Common practice is to prefix ID with \u2018_\u2019 to hide it from \u2018<a href=\"https:\/\/codex.wordpress.org\/Custom_Fields#Usage\" rel=\"nofollow noopener\" target=\"_blank\">post custom fields feature<\/a>\u2019.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is a non-standard post attribute that could come from the \u2018post custom fields feature\u2019 or other plugins that extend the post\u2019s meta-data. The most known such plugins are custom fields providers, e.g. Meta Box \u2013 WordPress Custom Fields Framework. As a result, any custom fields have an ID and vale. So, these fields should&#8230;<\/p>\n","protected":false},"author":18,"featured_media":0,"parent":1024,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"rank_math_lock_modified_date":false},"categories":[113],"tags":[172,171],"class_list":["post-1279","doc","type-doc","status-publish","hentry","category-post-docx-source","tag-custom-fields","tag-post"],"_links":{"self":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/doc\/1279","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=1279"}],"up":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/doc\/1024"}],"wp:attachment":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/media?parent=1279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/categories?post=1279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/tags?post=1279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}