Support » Plugin: Business Directory Plugin » Display business listings underneath categories on directory page

  • Resolved ChrisHPZ


    Hi there. First off I want to say thanks for this plugin and the functionality behind it. It really is amazing. Oh and it does work with WP 3.6.1 and the Twentythirteen theme in case anyone wonders.

    So I’ve been working with this plugin today, looking at the code, learning the ins and outs. I’m pretty confidant that I can explain what the options do. In tinkering with the source code today, I got to thinking that it would be nice to show business listings underneath the categories they are assigned to respectively. Think of a kind of hierarchical navigation menu where the title represents a top-level link or in this case a category and the sub-level links are the businesses. I’m more than comfortable working with PHP as it’s what I do.

    My problem is that I just don’t know which of the plugin’s functions to put on businessdirectory-main-page.tpl.php Is what I’m talking about possible with this version? Oh and I’m using version 3.1.1 of the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author businessdirectoryplugin


    Hi Chris,

    It probably is, but I would need to ask my developer the specifics on that. Let me get back to you.

    Plugin Author businessdirectoryplugin


    Hi Chris,

    My developer responded:

    He’s right on the template that handles the main page but we don’t have a precise function that does exactly what he wants: print the title of each listing inside a category. We have filters that could be used but there’s no clean solution here.

    Sadly, there’s no BD functions to do what he wants. He has to use standard WP functionality like obtaining the terms (categories) in the taxonomy and then the listings. Something like the following could work (placed in the main template):

    Hope this helps.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display business listings underneath categories on directory page’ is closed to new replies.