{"id":843,"date":"2025-03-24T14:27:50","date_gmt":"2025-03-24T14:27:50","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/gd-list-loop-actions\/"},"modified":"2025-04-03T15:24:10","modified_gmt":"2025-04-03T14:24:10","slug":"gd-list-loop-actions","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/list-manager\/gd-list-loop-actions\/","title":{"rendered":"GD > List Loop Actions"},"content":{"rendered":"<section class=\"alert alert-success dashed\">\n\t 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>.<\/section>\n<p>\n\t The <strong>&nbsp;Locations widget<\/strong>&nbsp;displays locations currently in your database such as<strong> Countries, Regions, Cities or Neighborhoods<\/strong>. The widget can show a location type such as &#8220;cities&#8221; <strong>relevant to the current Country or Region<\/strong> being viewed or this <strong>can be manually filtered<\/strong> in the settings to show specific locations.<\/p>\n<p> <strong><\/strong><\/p>\n<h2>Widget Options<\/h2>\n<ul>\n<li><strong>Title<\/strong> <strong>&#8211;<\/strong> The title for the widget.<\/li>\n<li><strong>Show Locations &#8211; <\/strong>Select which locations to be shown in the list (default is Cities). <\/li>\n<li><strong>Output Type (<a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-features\/hidden-advanced-settings\/\">A<\/a>) &#8211; <\/strong>Select whether to display the locations as a list or an image grid.<br \/> <strong><\/strong><\/li>\n<li><strong>Number of Locations &#8211; <\/strong>Select the number of locations to be shown. <\/li>\n<li><strong>Show Pagination on Top (Checkbox) <strong>(<a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-features\/hidden-advanced-settings\/\">A<\/a>) &#8211; <\/strong><\/strong>If checked, pagination options will appear at the top.<\/li>\n<li><strong>Show Pagination at Bottom <strong>(Checkbox) (<a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-features\/hidden-advanced-settings\/\">A<\/a>) &#8211; <\/strong><\/strong>If checked, pagination options will appear at the bottom.<strong><strong><\/strong><\/strong><\/li>\n<li><strong>Show Advanced Pagination Details <strong>(<a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-features\/hidden-advanced-settings\/\">A<\/a>) &#8211; <\/strong><\/strong>This option will display advanced pagination info after the pagination (such as &#8220;Showing Page X of Y&#8221;). <br \/> <strong><\/strong><\/li>\n<li><strong>Disable Location Filter? (Checkbox) &#8211; <\/strong>If checked, the Location Filter will be disabled. <\/li>\n<li><strong>Show Current Location Only (Checkbox) &#8211; <\/strong>If checked, only the current location will be displayed.&nbsp; <strong><br \/>\n\t <\/strong><\/li>\n<li><strong>Country Slug <strong>(<a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-features\/hidden-advanced-settings\/\">A<\/a>) &#8211; <\/strong><\/strong>Filters the locations by country slug when Location Filter is enabled. <\/li>\n<li><strong>Region Slug <strong>(<a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-features\/hidden-advanced-settings\/\">A<\/a>) &#8211; <\/strong><\/strong>Filters the locations by region slug when Location Filter is enabled.<strong><strong><\/strong><\/strong>&nbsp;<strong><strong> <\/strong><\/strong><\/li>\n<li><strong>Show\/Hide Options (Widget only) &#8211; <\/strong>Choose where the widget should be displayed. <strong><br \/>\n\t <\/strong><\/li>\n<\/ul>\n<h2>Example Output<\/h2>\n<p>\n\t Sample output, with cities being shown as <strong>image grid: <br \/>\n\t <\/strong><\/p>\n<p> <strong><\/strong><\/p>\n<p>\n\t <img width=\"617\" height=\"250\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-iDEKsbrRQQ-2.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-iDEKsbrRQQ-2.png 617w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-iDEKsbrRQQ-2-300x122.png 300w\" sizes=\"auto, (max-width: 617px) 100vw, 617px\" \/><\/p>\n<p> <strong><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>All Widgets come as Widgets, Shortcodes or Blocks. Learn more about our Super Duper Widgets. The &nbsp;Locations widget&nbsp;displays locations currently in your database such as Countries, Regions, Cities or Neighborhoods. The widget can show a location type such as &#8220;cities&#8221; relevant to the current Country or Region being viewed or this can be manually filtered [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[213,407],"class_list":["post-843","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-extensions-features","gd_placecategory-list-manager"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/843","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"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/comments?post=843"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/843\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=843"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=843"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}