Tagged: custom, documentation, templates
- This topic has 6 replies, 3 voices, and was last updated 11 years, 6 months ago by BePro Software Team.
-
AuthorPosts
-
May 12, 2014 at 1:42 pm #1898microwebParticipant
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.
May 12, 2014 at 4:03 pm #1901BePro Software TeamKeymasterHi,
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 TeamMay 12, 2014 at 5:07 pm #1904microwebParticipantThanks, 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?
May 12, 2014 at 5:36 pm #1905microwebParticipantNevermind… I figured it out. I was using bepro_listings_list_stuart instead of bepro_listings_list_template_stuart in my $data array defintion.
May 13, 2014 at 4:32 am #1909BePro Software TeamKeymasterHi,
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 TeamDecember 4, 2014 at 7:01 am #3546masciaParticipantThe link http://www.beprosoftware.com/custom-listing-templates/ is broken. Where I can find this informations?
December 4, 2014 at 11:06 am #3548BePro Software TeamKeymasterHi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.
