
{"id":798,"date":"2013-12-28T18:33:41","date_gmt":"2013-12-28T22:33:41","guid":{"rendered":"http:\/\/www.beprosoftware.com\/?p=798"},"modified":"2015-03-20T09:53:39","modified_gmt":"2015-03-20T13:53:39","slug":"bepro-listings-template-files","status":"publish","type":"post","link":"https:\/\/beprosoftware.com\/documentation\/bepro-listings-template-files\/","title":{"rendered":"BePro Listings Template Files"},"content":{"rendered":"<p>Since version BePro Listings 2.1.98, we use a template option called &#8220;internal&#8221; to integrate easily with most templates. However, if you prefer to create a custom template for BePro Listings, consider changing the &#8220;Template type&#8221; option in the admin to &#8220;File&#8221;. At that point, like every other plugin which uses \u00a0a <strong>custom post type<\/strong>, you will need to create template files for BePro Listings. These files will help BePro Listings to fit into your current custom wordpress theme.<\/p>\n<ul>\n<li>We have created 2 video tutorials regarding this process for <a href=\"&lt;a href=\" target=\"_blank\">subscription members<\/a>. To view these videos <a href=\"https:\/\/www.beprosoftware.com\/blog\/custom-post-type-page-template\/\" target=\"_blank\">Click here<\/a><\/li>\n<\/ul>\n<h2>SYNOPSIS<\/h2>\n<p>So you have installed BePro Listings and you want to customize the BePro Listing page layout. Maybe you are interested in changing the order of template features or control which features are shown. When it comes to wordpress, your option is to create a template file<\/p>\n<h2>DIFFICULTY<\/h2>\n<p>This is an intermediate level job. You *MUST* understand html to successfully replicate the format necessary to integrate BePro Listings into your theme. Its a little more involved than simply adding a shortcode into an existing template.<\/p>\n<p>&nbsp;<\/p>\n<h2>WordPress TEMPLATE FILES<\/h2>\n<p>This is happening because the plugin has no way of knowing how your custom theme is setup. You need to help it by creating 2-3 of the following files:<\/p>\n<ul>\n<li>header-listings.php<\/li>\n<li>footer-listings.php<\/li>\n<li>sidebar-listings.php<\/li>\n<\/ul>\n<p>As the names suggest, these are simply mirrors of your current, <strong>header<\/strong>, <strong>footer<\/strong> and <strong>sidebar<\/strong> files. The only difference is that you may need to add new html tags so that the generated BePro Listings page looks exactly like every other page on your website<\/p>\n<p>The thing to note is that you aren&#8217;t just creating the files. To leave progress there, would not achieve your goal of\u00a0<strong>integrating BePro Listings<\/strong>\u00a0into\u00a0<strong>your theme<\/strong>. It simply replicates the problem.<\/p>\n<p>The goal of the templates is to replicate the correct structure of your html code as seen visually on pages which came with your theme. In files like, page.php, single.php and index.php, theme makers will often put some of the important (format forming) html declarations. BePro Listings and every other plugin which uses custom post types &#8220;e.g. woocommerce and buddypress&#8221; pulls in the header\/footer and possibly the sidebar. They do not retrieve potentially important html from the other files.<\/p>\n<h2>TEMPLATE FILE RESULTING FORMAT<\/h2>\n<p>Ultimately,the result should be a situation where the header, footer and sidebar together encase the bepro listings content in the correct html. To further simplify, you need to take the important html declarations from pages like single.php\/index.php and put them in the custom header-listings.php\/footer-listings.php\/sidebar-listings.php files.<\/p>\n<h2>WHAT YOU NEED<\/h2>\n<p>you will need to be able to discern whats an important html declaration. Unfortunately, this is not something a novice can do. Its beyond wordpress and becomes an issue of understanding html. This is why we provide a growing number of themes. With that said, the problem is as simple\/trivial as replicating\u00a0the correct html structure and wrapping that around BePro Listings<\/p>\n<p>That&#8217;s why currently, product support is by far our cheapest service. For someone that knows what they are doing, issues like this take literally minutes to diagnose and repair.<\/p>\n<p>&#8211; <a title=\"product support\" href=\"http:\/\/www.beprosoftware.com\/shop\/product-support-1hr\/\">http:\/\/www.beprosoftware.com\/shop\/product-support-1hr\/<\/a><\/p>\n<h2>CONCLUSION<\/h2>\n<p>BePro Listings is designed to fit into your <strong>current wordpress theme<\/strong>. In cases, where it does not fit perfectly on activation, you may need to get your hands dirty and <strong>create a template<\/strong> which matches your theme. All wordpress plugins which use custom post types have this issue, which is why entire themes are usually provided. We have done the same, check out our <a title=\"ByCater\" href=\"http:\/\/www.beprosoftware.com\/shop\/bycater\/\">$1 wordpress theme<\/a> if you would like to see an example of what was discussed in this article.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since version BePro Listings 2.1.98, we use a template option called &#8220;internal&#8221; to integrate easily with most templates. However, if you prefer to create a custom template for BePro Listings, consider changing the &#8220;Template type&#8221; option in the admin to &#8220;File&#8221;. At that point, like every other plugin which uses \u00a0a custom post type, you&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,92],"class_list":["post-798","post","type-post","status-publish","format-standard","hentry","category-bepro-listings-plugins-2","tag-bepro-listings","tag-templates","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>BePro Listings Template Files - 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\/bepro-listings-template-files\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"BePro Listings Template Files - Documentation\" \/>\n<meta property=\"og:description\" content=\"Since version BePro Listings 2.1.98, we use a template option called &#8220;internal&#8221; to integrate easily with most templates. However, if you prefer to create a custom template for BePro Listings, consider changing the &#8220;Template type&#8221; option in the admin to &#8220;File&#8221;. At that point, like every other plugin which uses \u00a0a custom post type, you&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.beprosoftware.com\/documentation\/bepro-listings-template-files\/\" \/>\n<meta property=\"og:site_name\" content=\"Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2013-12-28T22:33:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-03-20T13:53:39+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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/bepro-listings-template-files\/\",\"url\":\"https:\/\/www.beprosoftware.com\/documentation\/bepro-listings-template-files\/\",\"name\":\"BePro Listings Template Files - Documentation\",\"isPartOf\":{\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/#website\"},\"datePublished\":\"2013-12-28T22:33:41+00:00\",\"dateModified\":\"2015-03-20T13:53:39+00:00\",\"author\":{\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/#\/schema\/person\/96560a18e84b6d1d52fd4b5439c3e0ef\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/bepro-listings-template-files\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.beprosoftware.com\/documentation\/bepro-listings-template-files\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/bepro-listings-template-files\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.beprosoftware.com\/documentation\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"BePro Listings Template Files\"}]},{\"@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":"BePro Listings Template Files - 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\/bepro-listings-template-files\/","og_locale":"en_US","og_type":"article","og_title":"BePro Listings Template Files - Documentation","og_description":"Since version BePro Listings 2.1.98, we use a template option called &#8220;internal&#8221; to integrate easily with most templates. However, if you prefer to create a custom template for BePro Listings, consider changing the &#8220;Template type&#8221; option in the admin to &#8220;File&#8221;. At that point, like every other plugin which uses \u00a0a custom post type, you&hellip;","og_url":"https:\/\/www.beprosoftware.com\/documentation\/bepro-listings-template-files\/","og_site_name":"Documentation","article_published_time":"2013-12-28T22:33:41+00:00","article_modified_time":"2015-03-20T13:53:39+00:00","author":"BePro Software Team","twitter_misc":{"Written by":"BePro Software Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.beprosoftware.com\/documentation\/bepro-listings-template-files\/","url":"https:\/\/www.beprosoftware.com\/documentation\/bepro-listings-template-files\/","name":"BePro Listings Template Files - Documentation","isPartOf":{"@id":"https:\/\/www.beprosoftware.com\/documentation\/#website"},"datePublished":"2013-12-28T22:33:41+00:00","dateModified":"2015-03-20T13:53:39+00:00","author":{"@id":"https:\/\/www.beprosoftware.com\/documentation\/#\/schema\/person\/96560a18e84b6d1d52fd4b5439c3e0ef"},"breadcrumb":{"@id":"https:\/\/www.beprosoftware.com\/documentation\/bepro-listings-template-files\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.beprosoftware.com\/documentation\/bepro-listings-template-files\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.beprosoftware.com\/documentation\/bepro-listings-template-files\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.beprosoftware.com\/documentation\/"},{"@type":"ListItem","position":2,"name":"BePro Listings Template Files"}]},{"@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\/798"}],"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=798"}],"version-history":[{"count":1,"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/posts\/798\/revisions"}],"predecessor-version":[{"id":2621,"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/posts\/798\/revisions\/2621"}],"wp:attachment":[{"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/media?parent=798"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/categories?post=798"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/tags?post=798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}