This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

iiui awan

  • ****
  • 118 posts
how to activate the plugin
« on: January 29, 2022, 05:45:47 AM »
i m using a different theme where to put the code to show companies on home page and what code i have to put

*

Vlad7

  • ****
  • 244 posts
Re: how to activate the plugin
« Reply #1 on: January 29, 2022, 02:27:06 PM »
Custom functions that can be used::  Get links to companies board
<?php if(function_exists('bpr_companies_url')) { echo bpr_companies_url(); } ?>
 Get link to user's company profile
<?php if(function_exists('bpr_company_url')) { echo bpr_company_url($user_id); } ?>
 Get user's company logo/icon
<?php if(function_exists('bpr_get_user_img')) { echo bpr_get_user_img($user_id); } ?>
 Get company's listings on search page
<?php if(function_exists('bpr_company_items_url')) { echo bpr_company_items_url($user_id); } ?>
 Get company's brand color
<?php if(function_exists('bpr_company_color')) { echo bpr_company_color($user_id); } ?>
 Get companies block (on home, search or item page)
<?php if(function_exists('bpr_companies_block')) { echo bpr_companies_block($limit, $order); } ?>
$limit - enter number how many profiles should be shown at once $order - there are multiple sorting types for companies: 'NEW' - from newest to oldest 'ITEMS' - based on number of items specific user has published 'RANDOM' - shown in completely random order each time page is refreshed 'SEARCH' - consider city & category on search page and show only profiles matching these criteria

*

iiui awan

  • ****
  • 118 posts
Re: how to activate the plugin
« Reply #2 on: January 29, 2022, 02:33:19 PM »
please just tell me the file name and specific code which i have to past to show bussiness profile on home page

Marked as best answer by frosticek on February 01, 2022, 03:49:41 PM
*

Vlad7

  • ****
  • 244 posts
Re: how to activate the plugin
« Reply #3 on: January 29, 2022, 02:59:39 PM »
please just tell me the file name and specific code which i have to past to show bussiness profile on home page

<?php if(function_exists('bpr_companies_block')) { echo bpr_companies_block($limit, $order); } ?>
add this code to file main.php