{"id":1000,"date":"2025-03-24T14:28:14","date_gmt":"2025-03-24T14:28:14","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/link-archive-items-to-a-different-page\/"},"modified":"2025-04-03T15:24:35","modified_gmt":"2025-04-03T14:24:35","slug":"link-archive-items-to-a-different-page","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/tips-tricks-more\/link-archive-items-to-a-different-page\/","title":{"rendered":"Link Archive Items to a Different Page"},"content":{"rendered":"<p>\n\t You can use GD Dynamic Content to change the link destination of the archive item title based on the value of a field.<\/p>\n<p>\n\t In this doc we will cover how to remove the link from the images, and change the link destination for the title.<\/p>\n<p>\n\t Change Images to remove the link<\/p>\n<p>\n\t Edit the Archive item and remove this shortcode:&nbsp;<\/p>\n<p>\n\t Replace it with this shortcode that has no link:&nbsp;<\/p>\n<p>\n\t<img width=\"920\" height=\"828\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-ptxn5Ur52f.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-ptxn5Ur52f.png 938w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-ptxn5Ur52f-300x270.png 300w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-ptxn5Ur52f-768x691.png 768w\" sizes=\"auto, (max-width: 920px) 100vw, 920px\" \/><\/p>\n<p>\n\t Change title to redirect the link<\/p>\n<p>\n\t Add a custom field to hold your redirect link. We will call it &#8216;my_redirect&#8217;<\/p>\n<p>\n\t<img width=\"569\" height=\"1024\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-mMjMZ16lTp-569x1024.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-mMjMZ16lTp-569x1024.png 569w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-mMjMZ16lTp-167x300.png 167w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-mMjMZ16lTp-768x1382.png 768w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-mMjMZ16lTp.png 844w\" sizes=\"auto, (max-width: 569px) 100vw, 569px\" \/>Edit the GD Archive Item. Remove this shortcode:&nbsp;<\/p>\n<div class=\"geodir-post-title bsui sdel-1fdff23a\" >\n<h2 class=\"geodir-entry-title  h5 \"><a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/tips-tricks-more\/link-archive-items-to-a-different-page\/\" class=\"\" title=\"View: Link Archive Items to a Different Page\">Link Archive Items to a Different Page<\/a><\/h2>\n<\/div>\n<p>\n\t Add these shortcode in their place.<\/p>\n<pre>&#091;gd_dynamic_content key=\"my_redirect\" condition=\"is_empty\"&#093;&#091;gd_post_title tag='h2'&#093;&#091;\/gd_dynamic_content&#093;&#091;gd_dynamic_content key=\"my_redirect\" condition=\"is_not_empty\"&#093;&lt;a href=\"&#091;gd_post_meta key='my_redirect' show='value-raw' no_wrap='1'&#093;\"&gt;&lt;h2&gt;&#091;gd_post_meta key='post_title' show='value-raw' no_wrap='1'&#093;&lt;\/h2&gt;&lt;\/a&gt;&#091;\/gd_dynamic_content&#093;\n<\/pre>\n<p>\n\t Here is how to create one for yourself with the Shortcode Builder<\/p>\n<p>\n\t<img width=\"920\" height=\"441\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-QmYzQZHN9D.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-QmYzQZHN9D.png 924w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-QmYzQZHN9D-300x144.png 300w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-QmYzQZHN9D-768x368.png 768w\" sizes=\"auto, (max-width: 920px) 100vw, 920px\" \/><\/p>\n<p>\n\t<img width=\"920\" height=\"522\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-cpuNJeMxxY.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-cpuNJeMxxY.png 928w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-cpuNJeMxxY-300x170.png 300w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-cpuNJeMxxY-768x436.png 768w\" sizes=\"auto, (max-width: 920px) 100vw, 920px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can use GD Dynamic Content to change the link destination of the archive item title based on the value of a field. In this doc we will cover how to remove the link from the images, and change the link destination for the title. Change Images to remove the link Edit the Archive item [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[211,2],"class_list":["post-1000","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-tips-tricks-more","gd_placecategory-uncategorized"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/1000","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=1000"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/1000\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=1000"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=1000"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=1000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}