{"id":794,"date":"2025-03-24T14:27:42","date_gmt":"2025-03-24T14:27:42","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-to-add-main-and-branch-listings\/"},"modified":"2025-04-03T15:24:02","modified_gmt":"2025-04-03T14:24:02","slug":"how-to-add-main-and-branch-listings","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/franchise-manager\/how-to-add-main-and-branch-listings\/","title":{"rendered":"How to Add Main and Branch Listings?"},"content":{"rendered":"<p>\n\t Franchise Manager extension lets you specify listings as &#8220;main listing&#8221;, and users can then add branch listings for the same.&nbsp;<\/p>\n<section class=\"alert alert-info\">\n\t Make sure you have enabled Franchise Manager support for the CPT to which you are intending to add main and branch listings. For details, refer to our <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/franchise-manager\/franchise-manager-setup-guide\/\">Setup Guide<\/a>.&nbsp;<\/section>\n<h2>Adding a Main Listing<\/h2>\n<p>\n\t When adding a new CPT, you will notice two extra fields:<\/p>\n<ul>\n<li><strong>Has Franchise? &#8211; <\/strong>If checked, the listing becomes a main listing.&nbsp;<\/li>\n<li><strong>Lock Franchise Fields &#8211; <\/strong>You can specify certain custom fields that will be locked. Any fields that are specified as locked are not editable in branch listings.&nbsp;<\/li>\n<\/ul>\n<p>\n\t <img width=\"831\" height=\"530\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-4YoWuoQLkO.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-4YoWuoQLkO.png 831w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-4YoWuoQLkO-300x191.png 300w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-4YoWuoQLkO-768x490.png 768w\" sizes=\"auto, (max-width: 831px) 100vw, 831px\" \/><\/p>\n<p>\n\t Once saved, the listing becomes a <strong>main listing <\/strong>and new branch listings can then be added to it.&nbsp;<\/p>\n<h2>Adding a Branch Listing<\/h2>\n<section class=\"alert alert-warning dashed\">\n\t Branch listings can only be added:-&nbsp;<\/p>\n<ul>\n<li>from the frontend&nbsp;<\/li>\n<li>by the same user that added the main listing.&nbsp;<\/li>\n<\/ul>\n<\/section>\n<dl>\n<dt>\n\t1\n\t<\/dt>\n<dd>\n\tFor every listing that is marked as <strong>main listing,<\/strong>&nbsp;you can add the <strong>&#8220;Add Franchise&#8221; <\/strong>link to the frontend using the <strong>GD &gt; Author Actions <\/strong>(widget, shortcode or block).&nbsp;\n\t<\/dd>\n<p>\t<img width=\"378\" height=\"105\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-RLzAKwKBsE.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-RLzAKwKBsE.png 378w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-RLzAKwKBsE-300x83.png 300w\" sizes=\"auto, (max-width: 378px) 100vw, 378px\" \/><\/p>\n<section class=\"alert alert-info\">\n<p>\t\t It is recommended to add GD &gt; Author Actions to the sidebar, and display it only on Listing Details page.&nbsp;<br \/>\n\t<\/section>\n<dt>\n\t2\n\t<\/dt>\n<dd>\n\tUpon clicking the <strong>&#8220;Add Franchise&#8221; <\/strong>link, you will be presented with the frontend <strong>Add a Listing <\/strong>form. This is where you can add the branch listing.&nbsp;\n\t<\/dd>\n<\/dl>\n<p>\n\t <img width=\"761\" height=\"1020\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-hfx6Pvyzpt.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-hfx6Pvyzpt.png 761w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-hfx6Pvyzpt-224x300.png 224w\" sizes=\"auto, (max-width: 761px) 100vw, 761px\" \/><\/p>\n<section class=\"alert alert-info\">\n\t The custom fields locked in the main listing cannot be edited in the branch listings. If such fields are edited in the main listing, the changes will be reflected in the branch listings.&nbsp;<\/section>\n","protected":false},"excerpt":{"rendered":"<p>Franchise Manager extension lets you specify listings as &#8220;main listing&#8221;, and users can then add branch listings for the same.&nbsp; Make sure you have enabled Franchise Manager support for the CPT to which you are intending to add main and branch listings. For details, refer to our Setup Guide.&nbsp; Adding a Main Listing When adding [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[554,607,632],"article\/categories":[213,412],"class_list":["post-794","gd_place","type-gd_place","status-publish","hentry","gd_place_tags-geodirectory-extensions","gd_place_tags-franchise-manager","gd_place_tags-branch-listings","gd_placecategory-extensions-features","gd_placecategory-franchise-manager"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/794","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=794"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/794\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=794"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=794"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=794"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}