{"id":5728044,"date":"2015-01-29T14:57:21","date_gmt":"2015-01-29T14:57:21","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/custom-option-types\/"},"modified":"2016-08-22T15:57:25","modified_gmt":"2016-08-22T15:57:25","slug":"custom-option-types","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/custom-option-types\/","title":{"rendered":"Custom Option Types"},"content":{"rendered":"<p>Hi,<br \/>\nI use Option Tree Custom Option Types. I&#8217;m trying to insert in theme color picker with opacity and Spacing. For Spacing I used code.<\/p>\n<pre><code>if ( function_exists( &#039;ot_get_option&#039; ) ) {\n  \/* get the array, and have a default just incase *\/\n  $color_opacity = ot_get_option( &#039;color_opacity&#039;, array( &#039;10&#039;, &#039;px&#039; ) );\n\n  \/* implode array into a string value *\/\n  if ( ! empty( color_opacity ) ) {\n    echo implode( &#039;&#039;, $color_opacity );\n  }\n\n}<\/code><\/pre>\n<p>But it display padding along. example: padding: 510510px<br \/>\nI need padding: 5px 5px 10px 10px. I also need the code for color opacity<\/p>\n<p>Sorry for my English.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/option-tree\/<\/p>\n","protected":false},"template":"","class_list":["post-5728044","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5728044","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5728044\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5728044"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}