{"id":918,"date":"2025-03-24T14:28:01","date_gmt":"2025-03-24T14:28:01","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/gd-archive-item-change-the-length-of-the-text-shown-with-gd-loop-and-gd-listings\/"},"modified":"2025-04-03T15:24:22","modified_gmt":"2025-04-03T14:24:22","slug":"gd-archive-item-change-the-length-of-the-text-shown-with-gd-loop-and-gd-listings","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/code-snippets\/gd-archive-item-change-the-length-of-the-text-shown-with-gd-loop-and-gd-listings\/","title":{"rendered":"GD Archive Item &#8211; Change the length of the text shown with GD Loop and GD Listings"},"content":{"rendered":"<p>\n\tThe <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-features\/design-or-customize-geodirectory-pages\/\">GD Archive Item<\/a> is the template that is displayed when you use the <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/gd-loop\/\">GD  Loop<\/a> and <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/gd-listings\/\">GD &gt; Listings<\/a> shortcodes.<\/p>\n<p>The GD Archive item is a WP Page that has shortcodes in it, and each shortcode shows different fields.<\/p>\n<p>The <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/gd-post-content\/\">GD &gt; Post Content<\/a> shortcode can be used to control the length of the post_content (Description) field display.<\/p>\n<p>Use the <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/shortcode-builder\/\">Shortcode Builder<\/a> to create a new GD Post Content&nbsp;shortcode to have the exact options you want.<\/p>\n<p>Here is an example:<\/p>\n<pre>&#91;gd_post_content key=\"post_content\" limit=\"12\" read_more=\"Read More...\" alignment=\"left\" strip_tags=\"1\"&#93;\n<\/pre>\n<p>\n\t<img width=\"778\" height=\"712\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-TvdJpx1ZO1.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-TvdJpx1ZO1.png 778w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-TvdJpx1ZO1-300x275.png 300w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-TvdJpx1ZO1-768x703.png 768w\" sizes=\"auto, (max-width: 778px) 100vw, 778px\" \/><\/p>\n<p>\n\tAlso, you may need to check in the Description custom field settings to make sure the Description field is not being displayed with the &#8220;Show in extra output location&#8221; option for &#8220;Listings&#8221;.<\/p>\n<p>\n\tYou can find that option here:<\/p>\n<p> <strong><br \/>\n\tPlaces &#8211; Settings &#8211; Custom Fields &#8211; Description field &#8211;&nbsp;Show in extra output location &#8211; Remove &#8220;Listings&#8221; if it is present.<\/strong><\/p>\n<p>\n\t<img width=\"920\" height=\"534\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-UH0FpqW7K0-1024x594.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-UH0FpqW7K0-1024x594.png 1024w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-UH0FpqW7K0-300x174.png 300w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-UH0FpqW7K0-768x445.png 768w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-UH0FpqW7K0-1536x890.png 1536w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-UH0FpqW7K0.png 1815w\" sizes=\"auto, (max-width: 920px) 100vw, 920px\" \/>&#8220;Show in extra output locations&#8221; is used to show fields in the <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/gd-output-location\/\">GD  Output Location<\/a> Shortcode.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The GD Archive Item is the template that is displayed when you use the GD Loop and GD &gt; Listings shortcodes. The GD Archive item is a WP Page that has shortcodes in it, and each shortcode shows different fields. The GD &gt; Post Content shortcode can be used to control the length of the [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[755,756,757],"article\/categories":[211,432,433],"class_list":["post-918","gd_place","type-gd_place","status-publish","hentry","gd_place_tags-post_content","gd_place_tags-archive-item","gd_place_tags-gd-post-content","gd_placecategory-tips-tricks-more","gd_placecategory-how-tos","gd_placecategory-code-snippets"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/918","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=918"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/918\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=918"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=918"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}