
{"id":1586,"date":"2014-03-25T12:17:45","date_gmt":"2014-03-25T15:17:45","guid":{"rendered":"http:\/\/www.beprosoftware.com\/?p=1586"},"modified":"2014-03-25T12:17:45","modified_gmt":"2014-03-25T15:17:45","slug":"custom-page-template","status":"publish","type":"post","link":"https:\/\/beprosoftware.com\/documentation\/custom-page-template\/","title":{"rendered":"Custom Page Template"},"content":{"rendered":"<p>Much like our listing templates, <a title=\"BePro Lisitngs\" href=\"http:\/\/beprosoftware.com\/products\/bepro-listings\">BePro Listings<\/a> page details are generated dynamically also. This allows you to add, remove, or replace and feature on the details page, on your own. More importantly, your changes will survive updates.<\/p>\n<h2>THE TEMPLATE FILE<\/h2>\n<p>The<strong> template file<\/strong> itself contains wordpress hooks. You can tie your functions to any of these hooks. Take a look at them here in bepro-listings\/templates\/content-single-listing.php.<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\n\necho &quot;&lt;\/pre&gt;\n&lt;h1&gt;&quot;;\ndo_action( 'bepro_listings_item_title' );\necho &quot;&lt;\/h1&gt;\n&lt;pre&gt;\n&quot;;\ndo_action( 'bepro_listings_item_above_gallery' );\ndo_action( 'bepro_listings_item_gallery');\ndo_action( 'bepro_listings_item_after_gallery');\ndo_action( 'bepro_listings_item_before_details');\ndo_action( 'bepro_listings_item_details');\ndo_action( 'bepro_listings_item_after_details');\ndo_action(&quot;bepro_listings_item_content_info&quot;);\ndo_action(&quot;bepro_listings_item_end&quot;);\n\n<\/pre>\n<p>Thats it, nothing spectacular there. Its a file with a bunch of <strong>wordpress hooks<\/strong>. That makes it super easy to make this page into whatever you want it to be.<\/p>\n<h2>YOUR FUNCTIONS<\/h2>\n<p>All you need to do is tell us which one of your functions, you want tied into those hooks. Here are the ones we <strong>dynamically<\/strong> assign with every page load<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\n$data = get_option(&quot;bepro_listings&quot;);\n$data['bepro_listings_item_title_template'] = 'bepro_listings_item_title';\n $data['bepro_listings_item_gallery_template'] = &quot;bepro_listings_item_gallery&quot;;\n $data['bepro_listings_item_after_gallery_template'] = &quot;bepro_listings_item_after_gallery&quot;;\n $data['bepro_listings_item_details_template'] = 'bepro_listings_item_details';\n $data['bepro_listings_item_content_template'] = 'bepro_listings_item_content_info';\nupdate_option(&quot;bepro_listings&quot;, $data);\n<\/pre>\n<p>So as an example, the hook &#8220;bepro_listings_item_title_template&#8221; calls our function, &#8220;bepro_listings_item_title&#8221;. You guessed it, in that function, we display the title. Replace it with your own functions<\/p>\n<h2>CONCLUSION<\/h2>\n<p><strong>Customizing BePro Lisitngs<\/strong> page details, while retaining the opportunity to upgrade is very possible. Its also fairly easy. Tell us which functions you would prefer to be called, for the wordpress hooks in the template file. This is a job for a novice wordpress developer.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Much like our listing templates, BePro Listings page details are generated dynamically also. This allows you to add, remove, or replace and feature on the details page, on your own. More importantly, your changes will survive updates. THE TEMPLATE FILE The template file itself contains wordpress hooks. You can tie your functions to any of&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[59],"tags":[19,170,171,172],"class_list":["post-1586","post","type-post","status-publish","format-standard","hentry","category-bepro-listings-plugins-2","tag-bepro-listings","tag-custom","tag-item-details","tag-template","category-59","description-off"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Custom Page Template - Documentation<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.beprosoftware.com\/documentation\/custom-page-template\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Custom Page Template - Documentation\" \/>\n<meta property=\"og:description\" content=\"Much like our listing templates, BePro Listings page details are generated dynamically also. This allows you to add, remove, or replace and feature on the details page, on your own. More importantly, your changes will survive updates. THE TEMPLATE FILE The template file itself contains wordpress hooks. You can tie your functions to any of&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.beprosoftware.com\/documentation\/custom-page-template\/\" \/>\n<meta property=\"og:site_name\" content=\"Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2014-03-25T15:17:45+00:00\" \/>\n<meta name=\"author\" content=\"BePro Software Team\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"BePro Software Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/custom-page-template\/\",\"url\":\"https:\/\/www.beprosoftware.com\/documentation\/custom-page-template\/\",\"name\":\"Custom Page Template - Documentation\",\"isPartOf\":{\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/#website\"},\"datePublished\":\"2014-03-25T15:17:45+00:00\",\"dateModified\":\"2014-03-25T15:17:45+00:00\",\"author\":{\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/#\/schema\/person\/96560a18e84b6d1d52fd4b5439c3e0ef\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/custom-page-template\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.beprosoftware.com\/documentation\/custom-page-template\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/custom-page-template\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.beprosoftware.com\/documentation\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Custom Page Template\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/#website\",\"url\":\"https:\/\/www.beprosoftware.com\/documentation\/\",\"name\":\"Documentation\",\"description\":\"BePro Software Product Documentation\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.beprosoftware.com\/documentation\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/#\/schema\/person\/96560a18e84b6d1d52fd4b5439c3e0ef\",\"name\":\"BePro Software Team\",\"description\":\"BePro Software is a Canadian company providing managed hosting, operational support, and long-term stewardship for business-critical websites and digital systems. We specialize in maintaining and operating platforms built by others, focusing on stability, security, accessibility, and continuity rather than one-off development. BePro Software is owned and operated by Beyond Programs Ltd and is based in British Columbia, Canada. Contact us on FolioProjects @BeproSoftware\",\"sameAs\":[\"http:\/\/beprosoftware.com\",\"https:\/\/x.com\/beprosoftware\"],\"url\":\"https:\/\/beprosoftware.com\/documentation\/author\/manager\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Custom Page Template - Documentation","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.beprosoftware.com\/documentation\/custom-page-template\/","og_locale":"en_US","og_type":"article","og_title":"Custom Page Template - Documentation","og_description":"Much like our listing templates, BePro Listings page details are generated dynamically also. This allows you to add, remove, or replace and feature on the details page, on your own. More importantly, your changes will survive updates. THE TEMPLATE FILE The template file itself contains wordpress hooks. You can tie your functions to any of&hellip;","og_url":"https:\/\/www.beprosoftware.com\/documentation\/custom-page-template\/","og_site_name":"Documentation","article_published_time":"2014-03-25T15:17:45+00:00","author":"BePro Software Team","twitter_misc":{"Written by":"BePro Software Team","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.beprosoftware.com\/documentation\/custom-page-template\/","url":"https:\/\/www.beprosoftware.com\/documentation\/custom-page-template\/","name":"Custom Page Template - Documentation","isPartOf":{"@id":"https:\/\/www.beprosoftware.com\/documentation\/#website"},"datePublished":"2014-03-25T15:17:45+00:00","dateModified":"2014-03-25T15:17:45+00:00","author":{"@id":"https:\/\/www.beprosoftware.com\/documentation\/#\/schema\/person\/96560a18e84b6d1d52fd4b5439c3e0ef"},"breadcrumb":{"@id":"https:\/\/www.beprosoftware.com\/documentation\/custom-page-template\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.beprosoftware.com\/documentation\/custom-page-template\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.beprosoftware.com\/documentation\/custom-page-template\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.beprosoftware.com\/documentation\/"},{"@type":"ListItem","position":2,"name":"Custom Page Template"}]},{"@type":"WebSite","@id":"https:\/\/www.beprosoftware.com\/documentation\/#website","url":"https:\/\/www.beprosoftware.com\/documentation\/","name":"Documentation","description":"BePro Software Product Documentation","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.beprosoftware.com\/documentation\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.beprosoftware.com\/documentation\/#\/schema\/person\/96560a18e84b6d1d52fd4b5439c3e0ef","name":"BePro Software Team","description":"BePro Software is a Canadian company providing managed hosting, operational support, and long-term stewardship for business-critical websites and digital systems. We specialize in maintaining and operating platforms built by others, focusing on stability, security, accessibility, and continuity rather than one-off development. BePro Software is owned and operated by Beyond Programs Ltd and is based in British Columbia, Canada. Contact us on FolioProjects @BeproSoftware","sameAs":["http:\/\/beprosoftware.com","https:\/\/x.com\/beprosoftware"],"url":"https:\/\/beprosoftware.com\/documentation\/author\/manager\/"}]}},"_links":{"self":[{"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/posts\/1586"}],"collection":[{"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/comments?post=1586"}],"version-history":[{"count":0,"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/posts\/1586\/revisions"}],"wp:attachment":[{"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/media?parent=1586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/categories?post=1586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/tags?post=1586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}