{"id":189,"date":"2018-08-31T06:22:25","date_gmt":"2018-08-31T06:22:25","guid":{"rendered":"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/custom-post-types\/"},"modified":"2019-10-18T20:39:08","modified_gmt":"2019-10-18T20:39:08","slug":"custom-post-types","status":"publish","type":"docs","link":"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/custom-post-types\/","title":{"rendered":"Custom Post Types"},"content":{"rendered":"<p><span class='bookmark-index'><br \/>\n<a href=\"#intro\">Introduction<\/a><br \/>\n<a href=\"#install\">Installation<\/a><br \/>\n<a href=\"#settings\">Settings<\/a><br \/>\n<a href=\"#link\">Link CPTs<\/a><br \/>\n<a href=\"#design\">Design<\/a><br \/>\n<a href=\"#support\">Support<\/a><br \/>\n<a href=\"#faq\">FAQ &#8211; Frequently Asked Questions<\/a><br \/>\n<\/span><\/p>\n<h3><a name=\"intro\" href=\"#intro\">Introduction<\/a><\/h3>\n<p>Your directory can use Custom Post Types to create distinct listings with different fields. This is an important tool if you want your directory to be diverse, to include different types of listings. With the addon you can create and manage new custom post types. Get the <a href=\"https:\/\/wpgeodirectory.com\/downloads\/custom-post-types\/\" rel=\"noopener noreferrer\" target=\"_blank\">Custom Post Types add-on for GeoDirectory<\/a> and get started.<\/p>\n<p>See more here: <a href=\"https:\/\/wpgeodirectory.com\/downloads\/custom-post-types\/\" rel=\"noopener noreferrer\" target=\"_blank\">https:\/\/wpgeodirectory.com\/downloads\/custom-post-types\/<\/a><\/p>\n<h3><a name=\"install\" href=\"#install\">Installation<\/a><\/h3>\n<h4><a name=\"prep\" href=\"#prep\">Preparation<\/a><\/h4>\n<p>Check to be sure you have the following plugins installed before you get started.<\/p>\n<ul>\n<li><a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/geodirectory\/overview\/\" rel=\"noopener noreferrer\" target=\"_blank\">GeoDirectory V2<\/a><\/li>\n<\/ul>\n<h4><a name=\"install\" href=\"#install\">Installation<\/a><\/h4>\n<ol>\n<li><a href=\"https:\/\/wpgeodirectory.com\/your-account\/\" rel=\"noopener noreferrer\" target=\"_blank\">Download the Addon from your account<\/a>.<\/li>\n<li><a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/installing-addons\/\" rel=\"noopener noreferrer\" target=\"_blank\">Install the Addon<\/a>.<\/li>\n<\/ol>\n<h3><a name=\"settings\" href=\"#settings\">Settings<\/a><\/h3>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/GDV2-Settings-Menu.png\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/GDV2-Settings-Menu.png\" alt=\"\" width=\"140\" height=\"143\" class=\"alignnone size-full wp-image-194\" \/><\/a><\/p>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/Screenshot-2018-08-31-at-8.27.57-AM.png\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/Screenshot-2018-08-31-at-8.27.57-AM.png\" alt=\"\" width=\"688\" height=\"482\" class=\"alignnone size-full wp-image-193\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/Screenshot-2018-08-31-at-8.27.57-AM.png 688w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/Screenshot-2018-08-31-at-8.27.57-AM-300x210.png 300w\" sizes=\"(max-width: 688px) 100vw, 688px\" \/><\/a><\/p>\n<h4><a name=\"basic\" href=\"#basic\">Basic Settings<\/a><\/h4>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/Screenshot-2018-08-31-at-8.28.12-AM.png\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/Screenshot-2018-08-31-at-8.28.12-AM.png\" alt=\"\" width=\"691\" height=\"406\" class=\"alignnone size-full wp-image-191\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/Screenshot-2018-08-31-at-8.28.12-AM.png 691w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/Screenshot-2018-08-31-at-8.28.12-AM-300x176.png 300w\" sizes=\"(max-width: 691px) 100vw, 691px\" \/><\/a><\/p>\n<h4><a name=\"advanced\" href=\"#advanced\">Advanced Settings<\/a><\/h4>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/GeoDirectory-Custom-Post-Types-Advanced.png\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/GeoDirectory-Custom-Post-Types-Advanced.png\" alt=\"\" width=\"709\" height=\"1742\" class=\"alignnone size-full wp-image-192\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/GeoDirectory-Custom-Post-Types-Advanced.png 709w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/GeoDirectory-Custom-Post-Types-Advanced-122x300.png 122w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/GeoDirectory-Custom-Post-Types-Advanced-417x1024.png 417w\" sizes=\"(max-width: 709px) 100vw, 709px\" \/><\/a><\/p>\n<h3><a name=\"link\" href=\"#link\">Link CPTs<\/a><\/h3>\n<p>To Link one CPT to another, visit the Custom Post Type Settings Custom Fields tab.<\/p>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/CPT-Places-Menu.png\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/CPT-Places-Menu.png\" alt=\"\" width=\"140\" height=\"164\" class=\"alignnone size-full wp-image-196\" \/><\/a><\/p>\n<p>CPT link fields are near the bottom of the page. Choose a link type and click to add to your CPT listing form.<\/p>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/CPT-Custom-Field-Link-Post.png\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/CPT-Custom-Field-Link-Post.png\" alt=\"\" width=\"286\" height=\"113\" class=\"alignnone size-full wp-image-199\" \/><\/a><\/p>\n<p>A view of the complete custom fields tab, with the Link fields near the bottom left.<\/p>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/CPT-Custom-Field-Complete.png\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/CPT-Custom-Field-Complete.png\" alt=\"\" width=\"705\" height=\"1155\" class=\"alignnone size-full wp-image-205\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/CPT-Custom-Field-Complete.png 705w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/CPT-Custom-Field-Complete-183x300.png 183w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/CPT-Custom-Field-Complete-625x1024.png 625w\" sizes=\"(max-width: 705px) 100vw, 705px\" \/><\/a><\/p>\n<p>Link CPT Field Settings<\/p>\n<p>Adjust field settings as desired. If you want to allow a link to more than one post, then make sure to set the value for Max to more than 1.<\/p>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/CPT-Link-Places-Settings.png\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/CPT-Link-Places-Settings.png\" alt=\"\" width=\"542\" height=\"947\" class=\"alignnone size-full wp-image-195\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/CPT-Link-Places-Settings.png 542w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/CPT-Link-Places-Settings-172x300.png 172w\" sizes=\"(max-width: 542px) 100vw, 542px\" \/><\/a><\/p>\n<p>You can link &#8216;from&#8217; hospitals to Doctors. Each such link would allow the hospital to link to one or more doctors.<br \/>\nYou can link &#8216;from&#8217; Doctors to hospitals. Each such link would allow a doctor listing to link to one or more hospitals.<\/p>\n<p>Use the custom field &#8216;linked from&#8217; in the Hospital Settings &#8211; Custom Fields &#8211; Custom Fields<\/p>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/LinkedPosts-tabsettings.png\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/LinkedPosts-tabsettings.png\" alt=\"\" width=\"1346\" height=\"545\" class=\"alignnone size-full wp-image-206\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/LinkedPosts-tabsettings.png 1346w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/LinkedPosts-tabsettings-300x121.png 300w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/LinkedPosts-tabsettings-768x311.png 768w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/LinkedPosts-tabsettings-1024x415.png 1024w\" sizes=\"(max-width: 1346px) 100vw, 1346px\" \/><\/a><\/p>\n<p>Link from Hospital to the Doctor<\/p>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/LinkedPosts-linkto.png\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/LinkedPosts-linkto.png\" alt=\"\" width=\"552\" height=\"264\" class=\"alignnone size-full wp-image-208\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/LinkedPosts-linkto.png 552w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/LinkedPosts-linkto-300x143.png 300w\" sizes=\"(max-width: 552px) 100vw, 552px\" \/><\/a><\/p>\n<p>Link from Doctor to Hospital<\/p>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/LinkedPosts-linkedfrom.png\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/LinkedPosts-linkedfrom.png\" alt=\"\" width=\"554\" height=\"352\" class=\"alignnone size-full wp-image-207\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/LinkedPosts-linkedfrom.png 554w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/LinkedPosts-linkedfrom-300x191.png 300w\" sizes=\"(max-width: 554px) 100vw, 554px\" \/><\/a><\/p>\n<h3><a name=\"design\" href=\"#design\">Design<\/a><\/h3>\n<h4><a name=\"gd_linked_posts\" href=\"#gd_linked_posts\">gd_linked_posts<\/a><\/h4>\n<p>The Custom Post Types addon enables a new design element called gd_linked_posts. This element is available as a widget, block, or shortcode.<\/p>\n<p>Use the element to display linked posts.<\/p>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/WP-Menu-Widgets.png\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/WP-Menu-Widgets.png\" alt=\"\" width=\"144\" height=\"137\" class=\"alignnone size-full wp-image-202\" \/><\/a><\/p>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/CPT-Widget-Min.png\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/CPT-Widget-Min.png\" alt=\"\" width=\"207\" height=\"80\" class=\"alignnone size-full wp-image-203\" \/><\/a><\/p>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/CPT-Widget-Basic.png\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/CPT-Widget-Basic.png\" alt=\"\" width=\"286\" height=\"397\" class=\"alignnone size-full wp-image-201\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/CPT-Widget-Basic.png 286w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/CPT-Widget-Basic-216x300.png 216w\" sizes=\"(max-width: 286px) 100vw, 286px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/CPT-Widget-Advanced.png\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/CPT-Widget-Advanced.png\" alt=\"\" width=\"285\" height=\"616\" class=\"alignnone size-full wp-image-200\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/CPT-Widget-Advanced.png 285w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/CPT-Widget-Advanced-139x300.png 139w\" sizes=\"(max-width: 285px) 100vw, 285px\" \/><\/a><\/p>\n<p>Example of the gd_linked_posts shortcode:<\/p>\n<pre><code>[gd_linked_posts title=\"Custom Title\" id=\"-4\" link_type=\"to\" post_type=\"gd_hospital\" sort_by=\"az\" title_tag=\"h3\" layout=\"list\" post_limit=\"5\"]<\/code><\/pre>\n<p>Shortcode builder options:<br \/>\n<a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/Shortcode-Builder-CPT-Linked-Posts.png\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/Shortcode-Builder-CPT-Linked-Posts.png\" alt=\"\" width=\"686\" height=\"592\" class=\"alignnone size-full wp-image-204\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/Shortcode-Builder-CPT-Linked-Posts.png 686w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/Shortcode-Builder-CPT-Linked-Posts-300x259.png 300w\" sizes=\"(max-width: 686px) 100vw, 686px\" \/><\/a><\/p>\n<p><strong><a href=\"#events\">Sorting linked Events by Date<\/a><\/strong><\/p>\n<p>It is possible to sort gd_linked_posts shortcode (only) by event date, but first make sure the sorting options are set to sort by date. Visit:<\/p>\n<p>Events (CPT) &#8211; Settings &#8211; Sorting (Tab) &#8211; Event Date. Choose event date and use as the primary sort<\/p>\n<p>Then in your shortcode, substitute <\/p>\n<pre><code>sort_by=\"event_dates_asc\"<\/code><\/pre>\n<h3>Customize<\/h3>\n<p>For more information about using CSS and PHP customization snippets please see our doc about <a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/faq\/customizing\/\">customizing<\/a>.<\/p>\n<h4>Snippets from the forum<\/h4>\n<blockquote class=gd-faq\">\n<p><strong>Hide CPT B fromPost Type Select on Directory Map on Archive for CPT A.<\/strong> <a href=\"https:\/\/wpgeodirectory.com\/support\/topic\/hiding-a-cpt-from-the-map\/#post-494854\">See this topic<\/a>.<\/p>\n<\/blockquote>\n<h3><a name=\"support\" href=\"#support\">Get Support<\/a><\/h3>\n<p>Get support on our forum, find out more here: <a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/geodirectory\/support\/\" rel=\"noopener noreferrer\" target=\"_blank\">https:\/\/wpgeodirectory.com\/docs-v2\/geodirectory\/support\/<\/a><\/p>\n<h3><a name=\"faq\" href=\"#faq\">FAQ &#8211; Frequently Asked Questions<\/a><\/h3>\n<blockquote><p>Can the Title, Description and Address be set to autocomplete and pull the information from the linked post?<\/p><\/blockquote>\n<p>Not at this time because each post type can be linked to multiple other posts. <\/p>\n<p><a href=\"#hide\" name=\"hide\">Can I hide a single CPT from the search bar selector?<\/a><\/p>\n<blockquote><p>\nHere is an example of how that can be done for a CPT called gd_schools in a <a href=\"https:\/\/wpgeodirectory.com\/support\/topic\/select-cpts-to-appear-in-search\/#post-461261\" rel=\"noopener noreferrer\" target=\"_blank\">snippet<\/a>.\n<\/p><\/blockquote>\n<h3>GD Linked Posts<\/h3>\n<h4><a href=\"#tab-layout\" name=\"tab-layout\">Alter Layout of Linked Posts<\/a><\/h4>\n<blockquote class=\"gd-faq\"><p>When you add GD Linked Posts custom field to your Tabs UI there isn&#8217;t an option to adjust the layout.<br \/>\nTo adjust the layout you will need to add a shortcode custom field in the tabsUI and use a shortcode in that shortcode field with the layout or other options you want.<\/p>\n<p>In this example we want to show linked events as a list. Events are linked TO the Places, but we are adding the list of events ON the places detail tabs, so for our shortcode, we want to show listings linked &#8220;From&#8221; the Events post type. And of course we need to add that layout=&#8221;list&#8221; to make it the way we want.<\/p>\n<p>Step by step:<\/p>\n<ul>\n<li>Open the places settings and click the Tabs (tab)<\/li>\n<li>Add a shortcode custom field<\/li>\n<li>Use a shortcode builder to create the GD Linked Posts shortcode that you want ex.\n<pre><code>[gd_linked_posts link_type=\"from\" post_type=\"gd_event\" sort_by=\"az\" title_tag=\"h3\" layout=\"list\" post_limit=\"1000\"]<\/code><\/pre>\n<\/li>\n<li>Add the shortcode to the shortcode field<\/li>\n<li>Name your tab and choose and icon and save<\/li>\n<li>Check the detail page to see the new layout in the new tab<\/li>\n<li>Remvoe the old field from the tabs if you don&#8217;t want it anymore<\/li>\n<li>Bob&#8217;s your uncle<\/li>\n<\/ul>\n<style>\n.column {\n  float: left;\n  width: 25%;\n}<\/p>\n<p>\/* Clear floats after the columns *\/\n.row:after {\n  content: \"\";\n  display: table;\n  clear: both;\n}\n<\/style>\n<div class=\"row\">\n<div class=\"column\"><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/gd-linked-0.jpg\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/gd-linked-0.jpg\" alt=\"\" width=\"150\" class=\"alignnone size-full wp-image-670\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/gd-linked-0.jpg 586w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/gd-linked-0-300x93.jpg 300w\" sizes=\"(max-width: 586px) 100vw, 586px\" \/><\/a><\/div>\n<div class=\"column\"><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/gd-linked-tab.jpg\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/gd-linked-tab.jpg\" alt=\"\" width=\"150\" class=\"alignnone size-full wp-image-673\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/gd-linked-tab.jpg 1433w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/gd-linked-tab-300x135.jpg 300w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/gd-linked-tab-768x347.jpg 768w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/gd-linked-tab-1024x462.jpg 1024w\" sizes=\"(max-width: 1433px) 100vw, 1433px\" \/><\/a><\/div>\n<div class=\"column\"><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/gd-link-2-grid-2.jpg\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/gd-link-2-grid-2.jpg\" alt=\"\" width=\"150\" class=\"alignnone size-full wp-image-672\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/gd-link-2-grid-2.jpg 1046w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/gd-link-2-grid-2-300x272.jpg 300w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/gd-link-2-grid-2-768x697.jpg 768w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/gd-link-2-grid-2-1024x929.jpg 1024w\" sizes=\"(max-width: 1046px) 100vw, 1046px\" \/><\/a><\/div>\n<div class=\"column\"><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/gd-linked-3.jpg\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/gd-linked-3.jpg\" alt=\"\" width=\"150\" class=\"alignnone size-full wp-image-671\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/gd-linked-3.jpg 1026w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/gd-linked-3-278x300.jpg 278w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/gd-linked-3-768x828.jpg 768w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/08\/gd-linked-3-950x1024.jpg 950w\" sizes=\"(max-width: 1026px) 100vw, 1026px\" \/><\/a><\/div>\n<\/div>\n<\/blockquote>\n<h4>Multiple Links to the Same Post Type<\/h4>\n<p>With the Custom Post Types Addon installed it is possible to create one (1) link from each Custom Post Type to any other post type (including itself).<\/p>\n<p>Though a project may benefit from a second (or N additional) link field, perhaps for a different kind of relationship, this is would be a customization that would require custom code and falls outside of support. <\/p>\n<h4><a href=\"#changes\" name=\"changes\">Changes in V2 Custom Post Types<\/a><\/h4>\n<p>Auto-fill<br \/>\n &#8211; In V1 it was possible to auto-fill the basic business info when adding a link event to a place. This is no longer possible in V2 because the link field supports multiple linked posts.<\/p>\n","protected":false},"featured_media":0,"parent":167,"menu_order":7,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"amp_validity":null,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/189"}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/comments?post=189"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/189\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/167"}],"next":[{"title":"Events","link":"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/events\/","href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/272"}],"prev":[{"title":"Compare Listings","link":"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/compare-listings\/","href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/842"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/media?parent=189"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/doc_tag?post=189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}