{"id":838,"date":"2023-10-27T15:37:25","date_gmt":"2023-10-27T15:37:25","guid":{"rendered":"https:\/\/dalesdemo.xyz\/?p=838"},"modified":"2023-10-27T16:40:18","modified_gmt":"2023-10-27T16:40:18","slug":"elementor-acf-checkbox-to-icon-list-part-1","status":"publish","type":"post","link":"https:\/\/dalesdemo.xyz\/index.php\/2023\/10\/27\/elementor-acf-checkbox-to-icon-list-part-1\/","title":{"rendered":"Elementor, ACF, Checkbox to Icon List part #1"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"838\" class=\"elementor elementor-838\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-766fe30 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"766fe30\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-20bc828\" data-id=\"20bc828\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6f5bfcd elementor-widget elementor-widget-image\" data-id=\"6f5bfcd\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.23.0 - 05-08-2024 *\/\n.elementor-widget-image{text-align:center}.elementor-widget-image a{display:inline-block}.elementor-widget-image a img[src$=\".svg\"]{width:48px}.elementor-widget-image img{vertical-align:middle;display:inline-block}<\/style>\t\t\t\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"768\" height=\"531\" src=\"https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/thmbnail-768x531.png\" class=\"attachment-medium_large size-medium_large wp-image-841\" alt=\"\" srcset=\"https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/thmbnail-768x531.png 768w, https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/thmbnail-300x208.png 300w, https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/thmbnail-1024x708.png 1024w, https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/thmbnail.png 1528w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">My Custom Icon list widget for Elementor and ACF<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-081f7b4 elementor-widget elementor-widget-text-editor\" data-id=\"081f7b4\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.23.0 - 05-08-2024 *\/\n.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:#69727d;color:#fff}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap{color:#69727d;border:3px solid;background-color:transparent}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap{margin-top:8px}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap-letter{width:1em;height:1em}.elementor-widget-text-editor .elementor-drop-cap{float:left;text-align:center;line-height:1;font-size:50px}.elementor-widget-text-editor .elementor-drop-cap-letter{display:inline-block}<\/style>\t\t\t\t<p>While running through some practice exercises anticipating one of my customer&#8217;s needs I had an issue with a clean, easy way to add icons to variables stored in ACF Pro. After much searching, I found no quick way to achieve it so I give you Custom Icon List Widget&#8230; May it one day have a snappier name<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5612d82 elementor-widget elementor-widget-heading\" data-id=\"5612d82\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.23.0 - 05-08-2024 *\/\n.elementor-heading-title{padding:0;margin:0;line-height:1}.elementor-widget-heading .elementor-heading-title[class*=elementor-size-]>a{color:inherit;font-size:inherit;line-height:inherit}.elementor-widget-heading .elementor-heading-title.elementor-size-small{font-size:15px}.elementor-widget-heading .elementor-heading-title.elementor-size-medium{font-size:19px}.elementor-widget-heading .elementor-heading-title.elementor-size-large{font-size:29px}.elementor-widget-heading .elementor-heading-title.elementor-size-xl{font-size:39px}.elementor-widget-heading .elementor-heading-title.elementor-size-xxl{font-size:59px}<\/style><h2 class=\"elementor-heading-title elementor-size-default\">The Problem<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4f56520 elementor-widget elementor-widget-text-editor\" data-id=\"4f56520\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Imagine you have a few rental properties and you are looking to list them, you create a website and a template and all seems lovely, now you come to list the facilities. using ACF we create the checkboxes for our rental property as below.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f070413 elementor-widget elementor-widget-image\" data-id=\"f070413\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/facilits.png\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"facilits\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6ODUxLCJ1cmwiOiJodHRwczpcL1wvZGFsZXNkZW1vLnh5elwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyM1wvMTBcL2ZhY2lsaXRzLnBuZyJ9\">\n\t\t\t\t\t\t\t<img decoding=\"async\" width=\"768\" height=\"913\" src=\"https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/facilits-768x913.png\" class=\"attachment-medium_large size-medium_large wp-image-851\" alt=\"\" srcset=\"https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/facilits-768x913.png 768w, https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/facilits-252x300.png 252w, https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/facilits-861x1024.png 861w, https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/facilits.png 889w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">Setup your checkbox in ACF Pro<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-965a640 elementor-widget elementor-widget-text-editor\" data-id=\"965a640\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Now when you come to display this on the front end your options are fairly limited in how that is presented and you have to use things like ACF Field, ACF Repeater but they do not offer the ability to replace with icons as easily as this custom widget will. Below is an example of the output from ACF Field<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-38f65fe elementor-widget elementor-widget-image\" data-id=\"38f65fe\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"621\" height=\"57\" src=\"https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/acffield.png\" class=\"attachment-medium_large size-medium_large wp-image-852\" alt=\"\" srcset=\"https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/acffield.png 621w, https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/acffield-300x28.png 300w\" sizes=\"(max-width: 621px) 100vw, 621px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">Front end display for ACF Field, no icon options ugly look<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-71317b2 elementor-widget elementor-widget-heading\" data-id=\"71317b2\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Solution<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5931990 elementor-widget elementor-widget-image-gallery\" data-id=\"5931990\" data-element_type=\"widget\" data-widget_type=\"image-gallery.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.23.0 - 05-08-2024 *\/\n.elementor-image-gallery .gallery-item{display:inline-block;text-align:center;vertical-align:top;width:100%;max-width:100%;margin:0 auto}.elementor-image-gallery .gallery-item img{margin:0 auto}.elementor-image-gallery .gallery-item .gallery-caption{margin:0}.elementor-image-gallery figure img{display:block}.elementor-image-gallery figure figcaption{width:100%}.gallery-spacing-custom .elementor-image-gallery .gallery-icon{padding:0}@media (min-width:768px){.elementor-image-gallery .gallery-columns-2 .gallery-item{max-width:50%}.elementor-image-gallery .gallery-columns-3 .gallery-item{max-width:33.33%}.elementor-image-gallery .gallery-columns-4 .gallery-item{max-width:25%}.elementor-image-gallery .gallery-columns-5 .gallery-item{max-width:20%}.elementor-image-gallery .gallery-columns-6 .gallery-item{max-width:16.666%}.elementor-image-gallery .gallery-columns-7 .gallery-item{max-width:14.28%}.elementor-image-gallery .gallery-columns-8 .gallery-item{max-width:12.5%}.elementor-image-gallery .gallery-columns-9 .gallery-item{max-width:11.11%}.elementor-image-gallery .gallery-columns-10 .gallery-item{max-width:10%}}@media (min-width:480px) and (max-width:767px){.elementor-image-gallery .gallery.gallery-columns-2 .gallery-item,.elementor-image-gallery .gallery.gallery-columns-3 .gallery-item,.elementor-image-gallery .gallery.gallery-columns-4 .gallery-item,.elementor-image-gallery .gallery.gallery-columns-5 .gallery-item,.elementor-image-gallery .gallery.gallery-columns-6 .gallery-item,.elementor-image-gallery .gallery.gallery-columns-7 .gallery-item,.elementor-image-gallery .gallery.gallery-columns-8 .gallery-item,.elementor-image-gallery .gallery.gallery-columns-9 .gallery-item,.elementor-image-gallery .gallery.gallery-columns-10 .gallery-item{max-width:50%}}@media (max-width:479px){.elementor-image-gallery .gallery.gallery-columns-2 .gallery-item,.elementor-image-gallery .gallery.gallery-columns-3 .gallery-item,.elementor-image-gallery .gallery.gallery-columns-4 .gallery-item,.elementor-image-gallery .gallery.gallery-columns-5 .gallery-item,.elementor-image-gallery .gallery.gallery-columns-6 .gallery-item,.elementor-image-gallery .gallery.gallery-columns-7 .gallery-item,.elementor-image-gallery .gallery.gallery-columns-8 .gallery-item,.elementor-image-gallery .gallery.gallery-columns-9 .gallery-item,.elementor-image-gallery .gallery.gallery-columns-10 .gallery-item{max-width:100%}}<\/style>\t\t<div class=\"elementor-image-gallery\">\n\t\t\t<div id='gallery-1' class='gallery galleryid-838 gallery-columns-3 gallery-size-medium'><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"5931990\" data-elementor-lightbox-title=\"customiconlist\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6ODY5LCJ1cmwiOiJodHRwczpcL1wvZGFsZXNkZW1vLnh5elwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyM1wvMTBcL2N1c3RvbWljb25saXN0LnBuZyIsInNsaWRlc2hvdyI6IjU5MzE5OTAifQ%3D%3D\" href='https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/customiconlist.png'><img loading=\"lazy\" decoding=\"async\" width=\"293\" height=\"300\" src=\"https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/customiconlist-293x300.png\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/customiconlist-293x300.png 293w, https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/customiconlist-999x1024.png 999w, https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/customiconlist-768x787.png 768w, https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/customiconlist.png 1043w\" sizes=\"(max-width: 293px) 100vw, 293px\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"5931990\" data-elementor-lightbox-title=\"facilits\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6ODUxLCJ1cmwiOiJodHRwczpcL1wvZGFsZXNkZW1vLnh5elwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyM1wvMTBcL2ZhY2lsaXRzLnBuZyIsInNsaWRlc2hvdyI6IjU5MzE5OTAifQ%3D%3D\" href='https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/facilits.png'><img loading=\"lazy\" decoding=\"async\" width=\"252\" height=\"300\" src=\"https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/facilits-252x300.png\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/facilits-252x300.png 252w, https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/facilits-861x1024.png 861w, https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/facilits-768x913.png 768w, https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/facilits.png 889w\" sizes=\"(max-width: 252px) 100vw, 252px\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"5931990\" data-elementor-lightbox-title=\"thmbnail\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6ODQxLCJ1cmwiOiJodHRwczpcL1wvZGFsZXNkZW1vLnh5elwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyM1wvMTBcL3RobWJuYWlsLnBuZyIsInNsaWRlc2hvdyI6IjU5MzE5OTAifQ%3D%3D\" href='https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/thmbnail.png'><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"208\" src=\"https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/thmbnail-300x208.png\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/thmbnail-300x208.png 300w, https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/thmbnail-1024x708.png 1024w, https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/thmbnail-768x531.png 768w, https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/thmbnail.png 1528w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\n\t\t\t<\/div><\/figure>\n\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a72c2d7 elementor-widget elementor-widget-text-editor\" data-id=\"a72c2d7\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>My proposed solution is:<\/p><p>Create a non-invasive elementor widget using the Code Snippets plugin, importing ACF Data and running that through an algorithm that, if set, matches the text with an icon and, if not set, matches the text with a default icon.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-61bb2ba elementor-widget elementor-widget-heading\" data-id=\"61bb2ba\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Requirements<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-72d60ac elementor-widget elementor-widget-text-editor\" data-id=\"72d60ac\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>I will assume that you know what you are doing with the following plugins which are required for this process:<\/p><p><strong>Code Snippets<\/strong> &#8211; This is needed for adding the PHP code from the admin panel, this can be done using an alternate method with FTP and making your own plugin but Code Snippets makes it faster and easier for you.<br \/><br \/><strong>ACF Pro &#8211;\u00a0<\/strong>goes without saying you need ACF Pro for the custom fields<br \/><br \/><strong>Elementor Pro &#8211;\u00a0<\/strong>I&#8217;m not spoon-feeding you!<br \/><br \/><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cb803c8 elementor-widget elementor-widget-heading\" data-id=\"cb803c8\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Steps\n<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-67d9696 elementor-widget elementor-widget-text-editor\" data-id=\"67d9696\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ol><li>Create ACF field and attach it to your desired post (not in guide)<\/li><li>Install, Active and select Code Snippets in the Admin Panel<\/li><li>Click Add New<\/li><li>Enter a Title such as &#8220;Checkbox to Icon List&#8221;<\/li><li>Paste in the code below<\/li><li>Change line\u00a0<br \/>&#8220;$acf_values = get_field( &#8216;facilities2&#8217; );&#8221;<br \/>to\u00a0<br \/>$acf_values = get_field( &#8216;yourACFvariablename&#8217; );<\/li><li>Click &#8220;save changes&#8221; in the top right<\/li><li>Click &#8220;activate&#8221; in the top right<\/li><li>Now edit a page(I suggest using a template)<\/li><li>Add the CSS to custom CSS on the page(guide below)<\/li><li>Place in your widget\u00a0<\/li><\/ol>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-71e6cb7 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"71e6cb7\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2f5194a\" data-id=\"2f5194a\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-82cf50e elementor-widget elementor-widget-heading\" data-id=\"82cf50e\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">The Code<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cae335c elementor-widget elementor-widget-code-highlight\" data-id=\"cae335c\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-php line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-php\">\n\t\t\t\t\t<xmp><?php\r\nadd_action( 'elementor\/widgets\/widgets_registered', function( $widgets_manager ) {\r\n\r\n    class Custom_Icon_List_Widget extends \\Elementor\\Widget_Base {\r\n\r\n        public function get_name() {\r\n            return 'custom_icon_list_widget';\r\n        }\r\n\r\n        public function get_title() {\r\n            return __( 'Custom Icon List Widget', 'your-text-domain' );\r\n        }\r\n\r\n        public function get_icon() {\r\n            return 'fa fa-list';\r\n        }\r\n\r\n        public function get_categories() {\r\n            return [ 'general' ];\r\n        }\r\n\r\n        protected function _register_controls() {\r\n            $this->start_controls_section(\r\n                'content_section',\r\n                [\r\n                    'label' => __( 'Variables', 'your-text-domain' ),\r\n                    'tab' => \\Elementor\\Controls_Manager::TAB_CONTENT,\r\n                ]\r\n            );\r\n\r\n            \/\/ Define the list items control\r\n            $this->add_control(\r\n                'list_items',\r\n                [\r\n                    'label' => __( 'List Items', 'your-text-domain' ),\r\n                    'type' => \\Elementor\\Controls_Manager::REPEATER,\r\n                    'fields' => [\r\n                        [\r\n                            'name' => 'item_title',\r\n                            'label' => __( 'Search String', 'your-text-domain' ),\r\n                            'type' => \\Elementor\\Controls_Manager::TEXT,\r\n\t\t\t\t\t\t\t'default' => esc_html__( 'List Title' , 'textdomain' ),\r\n                        ],\r\n                        [\r\n                            'name' => 'icon',\r\n                            'label' => __( 'Replace Icon', 'your-text-domain' ),\r\n                            'type' => \\Elementor\\Controls_Manager::ICONS,\r\n                            'default' => [\r\n                                'value' => 'fas fa-star',\r\n                                'library' => 'fa-solid',\r\n                            ],\r\n                        ],\r\n                    ],\r\n                    'title_field' => '{{{item_title}}}',\r\n                ]\r\n            );\r\n\r\n            \/\/ Add a default icon control\r\n            $this->add_control(\r\n                'default_icon',\r\n                [\r\n                    'label' => __( 'Default Icon', 'your-text-domain' ),\r\n                    'type' => \\Elementor\\Controls_Manager::ICONS,\r\n                    'default' => [\r\n                        'value' => 'fas fa-star',\r\n                        'library' => 'fa-solid',\r\n                    ],\r\n                ]\r\n            );\r\n\r\n            $this->end_controls_section();\r\n        }\r\n\r\n        protected function render() {\r\n            if ( ! function_exists( 'get_field' ) ) {\r\n                return;\r\n            }\r\n\r\n            $settings = $this->get_settings_for_display();\r\n            $acf_values = get_field( 'facilities2' );\r\n\r\n            if ( is_array( $acf_values ) && !empty( $acf_values ) && is_array( $settings['list_items'] ) && !empty( $settings['list_items'] ) ) {\r\n\r\n                \/\/ Convert list items into an associative array for easier lookup\r\n                $list_items_assoc = [];\r\n                foreach ( $settings['list_items'] as $item ) {\r\n                    $list_items_assoc[$item['item_title']] = $item['icon'];\r\n                }\r\n\r\n                \/\/ Render the updated list\r\n                echo '<ul class=\"custom-icon-list\">';\r\n                foreach ( $acf_values as $acf_value ) {\r\n                    if ( isset( $list_items_assoc[$acf_value] ) ) {\r\n                        $icon = $list_items_assoc[$acf_value];\r\n                    } else {\r\n                        $icon = $settings['default_icon'];  \/\/ Use the default icon if no matching item is found\r\n                    }\r\n                    ob_start();\r\n                    \\Elementor\\Icons_Manager::render_icon( $icon, [ 'aria-hidden' => 'true' ] );\r\n                    $icon_html = ob_get_clean();\r\n                    ?>\r\n                    <li><span class=\"icon-wrapper\"><?php echo $icon_html; ?> <\/span> <?php echo esc_html( $acf_value ); ?><\/li>\r\n                    <?php\r\n                }\r\n                echo '<\/ul>';\r\n            }\r\n        }\r\n    }\r\n\r\n    $widgets_manager->register_widget_type( new Custom_Icon_List_Widget() );\r\n} );\r\n?><\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ec2727c elementor-widget elementor-widget-heading\" data-id=\"ec2727c\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">The Code (Pt.2)<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f6b5aeb elementor-widget elementor-widget-text-editor\" data-id=\"f6b5aeb\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>because of how HTML UL work you need to use CSS to remove bulletpoints and lineup icons with text. In elementor edit your template or page &gt; settings &gt; advanced &gt; custom CSS &gt;<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4e76d49 elementor-widget elementor-widget-code-highlight\" data-id=\"4e76d49\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-php line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-php\">\n\t\t\t\t\t<xmp>.custom-icon-list {\r\n    list-style-type: none; \/* Removes bullet points *\/\r\n    padding: 0; \/* Removes default padding *\/\r\n    margin: 0; \/* Removes default margin *\/\r\n}\r\n\r\n.custom-icon-list li {\r\n    margin-bottom: 10px; \/* Adds space below each list item *\/\r\n    display: flex; \/* Aligns icon and text horizontally *\/\r\n    align-items: center; \/* Vertically centers icon and text *\/\r\n    flex-wrap: nowrap; \/* Prevents wrapping within list items *\/\r\n}\r\n\r\n.custom-icon-list .icon-wrapper {\r\n    margin-right: 10px; \/* Adds space between icon and text *\/\r\n    display: inline-block; \/* Ensures icon wrapper behaves as an inline element *\/\r\n}<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0d9a7fa elementor-widget elementor-widget-heading\" data-id=\"0d9a7fa\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">What it all does<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d020f8f elementor-widget elementor-widget-text-editor\" data-id=\"d020f8f\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>This is the primary visual controls you see inside elementor, We start by creating the sections and titles, then add the list of items and the defaults associated with them.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7be67e2 elementor-widget elementor-widget-code-highlight\" data-id=\"7be67e2\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>        protected function _register_controls() {\r\n            $this->start_controls_section(\r\n                'content_section',\r\n                [\r\n                    'label' => __( 'Variables', 'your-text-domain' ),\r\n                    'tab' => \\Elementor\\Controls_Manager::TAB_CONTENT,\r\n                ]\r\n            );\r\n\r\n            \/\/ Define the list items control\r\n            $this->add_control(\r\n                'list_items',\r\n                [\r\n                    'label' => __( 'List Items', 'your-text-domain' ),\r\n                    'type' => \\Elementor\\Controls_Manager::REPEATER,\r\n                    'fields' => [\r\n                        [\r\n                            'name' => 'item_title',\r\n                            'label' => __( 'Search String', 'your-text-domain' ),\r\n                            'type' => \\Elementor\\Controls_Manager::TEXT,\r\n\t\t\t\t\t\t\t'default' => esc_html__( 'List Title' , 'textdomain' ),\r\n                        ],\r\n                        [\r\n                            'name' => 'icon',\r\n                            'label' => __( 'Replace Icon', 'your-text-domain' ),\r\n                            'type' => \\Elementor\\Controls_Manager::ICONS,\r\n                            'default' => [\r\n                                'value' => 'fas fa-star',\r\n                                'library' => 'fa-solid',\r\n                            ],\r\n                        ],\r\n                    ],\r\n                    'title_field' => '{{{item_title}}}',\r\n                ]\r\n            );\r\n\r\n            \/\/ Add a default icon control\r\n            $this->add_control(\r\n                'default_icon',\r\n                [\r\n                    'label' => __( 'Default Icon', 'your-text-domain' ),\r\n                    'type' => \\Elementor\\Controls_Manager::ICONS,\r\n                    'default' => [\r\n                        'value' => 'fas fa-star',\r\n                        'library' => 'fa-solid',\r\n                    ],\r\n                ]\r\n            );\r\n\r\n            $this->end_controls_section();\r\n        }<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3cd472c elementor-widget elementor-widget-text-editor\" data-id=\"3cd472c\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>The Rendering is where the heavy lifting is done. This function renders the UX and loops through the data, and applies the algorithm.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-58a9c44 elementor-widget elementor-widget-code-highlight\" data-id=\"58a9c44\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>        protected function render() {\r\n            if ( ! function_exists( 'get_field' ) ) {\r\n                return;\r\n            }\r\n\r\n            $settings = $this->get_settings_for_display();\r\n            $acf_values = get_field( 'facilities2' );\r\n\r\n            if ( is_array( $acf_values ) && !empty( $acf_values ) && is_array( $settings['list_items'] ) && !empty( $settings['list_items'] ) ) {\r\n\r\n                \/\/ Convert list items into an associative array for easier lookup\r\n                $list_items_assoc = [];\r\n                foreach ( $settings['list_items'] as $item ) {\r\n                    $list_items_assoc[$item['item_title']] = $item['icon'];\r\n                }\r\n\r\n                \/\/ Render the updated list\r\n                echo '<ul class=\"custom-icon-list\">';\r\n                foreach ( $acf_values as $acf_value ) {\r\n                    if ( isset( $list_items_assoc[$acf_value] ) ) {\r\n                        $icon = $list_items_assoc[$acf_value];\r\n                    } else {\r\n                        $icon = $settings['default_icon'];  \/\/ Use the default icon if no matching item is found\r\n                    }\r\n                    ob_start();\r\n                    \\Elementor\\Icons_Manager::render_icon( $icon, [ 'aria-hidden' => 'true' ] );\r\n                    $icon_html = ob_get_clean();\r\n                    ?>\r\n                    <li><span class=\"icon-wrapper\"><?php echo $icon_html; ?> <\/span> <?php echo esc_html( $acf_value ); ?><\/li>\r\n                    <?php\r\n                }\r\n                echo '<\/ul>';\r\n            }\r\n        }<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a4e0f03 elementor-widget elementor-widget-text-editor\" data-id=\"a4e0f03\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Lets go through in a bit more detail<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-fd48ca3 elementor-widget elementor-widget-code-highlight\" data-id=\"fd48ca3\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>            $settings = $this->get_settings_for_display();\r\n            $acf_values = get_field( 'facilities2' );<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4d1a681 elementor-widget elementor-widget-text-editor\" data-id=\"4d1a681\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>This pulls the ACF Field from the SQL database<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-da02ab7 elementor-widget elementor-widget-code-highlight\" data-id=\"da02ab7\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>            if ( is_array( $acf_values ) && !empty( $acf_values ) && is_array( $settings['list_items'] ) && !empty( $settings['list_items'] ) ) {\r\n<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-45fc78a elementor-widget elementor-widget-text-editor\" data-id=\"45fc78a\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Next we make sure that our validations are correct (data is arrays for loops and is not NULL)<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-abe2e20 elementor-widget elementor-widget-code-highlight\" data-id=\"abe2e20\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>  $list_items_assoc = [];\r\n                foreach ( $settings['list_items'] as $item ) {\r\n                    $list_items_assoc[$item['item_title']] = $item['icon'];\r\n                }<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-77165ed elementor-widget elementor-widget-text-editor\" data-id=\"77165ed\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Prepare our data into an array ready for usage<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-738e3c9 elementor-widget elementor-widget-code-highlight\" data-id=\"738e3c9\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>                echo '<ul class=\"custom-icon-list\">';\r\n                foreach ( $acf_values as $acf_value ) {\r\n                    if ( isset( $list_items_assoc[$acf_value] ) ) {\r\n                        $icon = $list_items_assoc[$acf_value];\r\n                    } else {\r\n                        $icon = $settings['default_icon'];  \/\/ Use the default icon if no matching item is found\r\n                    }\r\n                    ob_start();\r\n                    \\Elementor\\Icons_Manager::render_icon( $icon, [ 'aria-hidden' => 'true' ] );\r\n                    $icon_html = ob_get_clean();\r\n                    ?>\r\n                    <li><span class=\"icon-wrapper\"><?php echo $icon_html; ?> <\/span> <?php echo esc_html( $acf_value ); ?><\/li>\r\n                    <?php\r\n                }\r\n                echo '<\/ul>';\r\n            }<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-46fc09e elementor-widget elementor-widget-text-editor\" data-id=\"46fc09e\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Now output some HTML, it creates an Unordered list, then checks if a word has an associated Icon, if it does have an Icon it displays it, if it does not have an icon it uses a default icon set in the UI.<\/p><p>Because $icon_html is already rendered as an output it must be created as an object and cleaned (line 8-10) otherwise you will get a 1 next to your array output.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ea957db elementor-widget elementor-widget-image\" data-id=\"ea957db\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"820\" src=\"https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/customiconlist-999x1024.png\" class=\"attachment-large size-large wp-image-869\" alt=\"\" srcset=\"https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/customiconlist-999x1024.png 999w, https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/customiconlist-293x300.png 293w, https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/customiconlist-768x787.png 768w, https:\/\/dalesdemo.xyz\/wp-content\/uploads\/2023\/10\/customiconlist.png 1043w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6d56085 elementor-widget elementor-widget-text-editor\" data-id=\"6d56085\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Next on my agenda will be adding the ability to enter which ACF field you select from and looking at sorting these into columns or a table to help with display.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>my Elementor Custom widget for adding icons to checkbox&#8217;s<\/p>\n","protected":false},"author":1,"featured_media":841,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[15,12,1,11,14],"tags":[],"class_list":["post-838","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","category-programming","category-uncategorized","category-websites","category-wordpress"],"acf":[],"_links":{"self":[{"href":"https:\/\/dalesdemo.xyz\/index.php\/wp-json\/wp\/v2\/posts\/838","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dalesdemo.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dalesdemo.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dalesdemo.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dalesdemo.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=838"}],"version-history":[{"count":36,"href":"https:\/\/dalesdemo.xyz\/index.php\/wp-json\/wp\/v2\/posts\/838\/revisions"}],"predecessor-version":[{"id":883,"href":"https:\/\/dalesdemo.xyz\/index.php\/wp-json\/wp\/v2\/posts\/838\/revisions\/883"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dalesdemo.xyz\/index.php\/wp-json\/wp\/v2\/media\/841"}],"wp:attachment":[{"href":"https:\/\/dalesdemo.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dalesdemo.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=838"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dalesdemo.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}