{"id":777,"date":"2025-03-24T14:27:39","date_gmt":"2025-03-24T14:27:39","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/gd-loop-actions\/"},"modified":"2025-04-03T15:24:00","modified_gmt":"2025-04-03T14:24:00","slug":"gd-loop-actions","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/gd-loop-actions\/","title":{"rendered":"GD > Loop Actions"},"content":{"rendered":"\n<div class=\"wp-block-blockstrap-blockstrap-widget-alert d-flex align-items-center fade show alert alert-success mb-3\" role=\"alert\"><span class=\"fas fa-check-circle me-2\"><\/span><span class=\"flex-grow-1\">All Widgets come as Widgets, Shortcodes or Blocks. Learn more about our <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/what-makes-geodirectory-widgets-special\/\">Super Duper Widgets<\/a>.<\/span><\/div>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-alert d-flex align-items-center fade show alert alert-danger mb-3\" role=\"alert\"><span class=\"fas fa-exclamation-triangle me-2\"><\/span><span class=\"flex-grow-1\">This is a <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/what-is-a-template-widget\/\">template widget<\/a> and should only ever be used on the <strong>GD Archive template<\/strong> page.<\/span><\/div>\n\n\n\n<p>The <strong><em>Loop Actions<\/em><\/strong> widget is usually placed above the GD &gt; Loop widget on the GD Archive template page.<br>This widget<strong> outputs layout options and sort options<\/strong> for the current post loop.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Widget Options<\/h2>\n\n\n\n<p><em>There are no options for this widget.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Template Page Example<\/h2>\n\n\n\n<p>As a shortcode:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-BHQEQRUKAN.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>As a Block:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"72\" height=\"83\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/Screenshot-from-2025-04-03-09-58-12.png\" alt=\"\" class=\"wp-image-1903\"\/><\/figure>\n\n\n\n<p>Example Output<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-l49UN5qs0s.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Loop Actions widget is usually placed above the GD &gt; Loop widget on the GD Archive template page.This widget outputs layout options and sort options for the current post loop. Widget Options There are no options for this widget. Template Page Example As a shortcode: As a Block: Example Output<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[422,213],"class_list":["post-777","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-core-widgets","gd_placecategory-extensions-features"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"author":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/comments?post=777"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/777\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=777"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=777"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}