- This topic has 6 replies, 3 voices, and was last updated 9 years, 9 months ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.
Tagged: custom, documentation, templates
I noticed that the latest version of BePro Listing has changed to use template files for layout. Is there a way to store the template file in my theme directory so and identify the template in the shortcode for for the listing? I do not want my changes to be modified each time I update your plugin.
Hi,
Yes, BePro listings works via template files for both the listings and details page. We have created documentation for people to create, store, and reference their own templates.
– http://www.beprosoftware.com/custom-listing-templates/
Regards,
BePro Software Team
Thanks, I followed those instructions and it doesn’t seem to be working as expected.
I put the template definition in the function.php file in my theme.
$data = get_option("bepro_listings");
$data['bepro_listings_list_stuart'] = array(
"bepro_listings_list_title" => "stuart_bepro_listings_list_title_template",
"bepro_listings_list_below_title" => "bepro_listings_list_category_template",
"bepro_listings_list_above_title" => "stuart_bepro_listings_list_image_template",
"bepro_listings_list_image" => "bepro_listings_list_geo_template",
"bepro_listings_list_content" => "stuart_bepro_listings_list_content_template",
"bepro_listings_list_end" => "bepro_listings_list_links_template",
"template_file" => get_template_directory().'/bp_stuart.php');
update_option("bepro_listings", $data);
I included all of my custom functions below that definition.
I created my template file and put it in the root of my theme folder.
And on my page I used the following shortcode: [display_listings type=”stuart”]
It seems to be having an issue finding my template file. Do you see anything wrong in what I did. Is the theme functions.php file the correct place for this code?
Nevermind… I figured it out. I was using bepro_listings_list_stuart instead of bepro_listings_list_template_stuart in my $data array defintion.
Hi,
I’m happy you figured it out.
Please remember to rate the plugin. Apart from buying addons, this is the best way to support development and growth of BePro Listings.
Regards,
___
BePro Software Team
The link http://www.beprosoftware.com/custom-listing-templates/ is broken. Where I can find this informations?
Hi,
We apologize for any confusion. All documentation has been moved to the documentation section of the website.
– https://www.beprosoftware.com/documentation/custom-listing-templates/
Regards
___
BePro Software Team
Stay up to date on web design and development trends. Also receive updates on video tutorials, services, deals, products, and discounts offered by the BePro Software Team. to sign-up for our newsletter today.