WordPress.org

Ready to get started?Download WordPress

Forums

Business Directory Plugin
[resolved] Display business listings underneath categories on directory page (3 posts)

  1. ChrisHPZ
    Member
    Posted 10 months ago #

    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.

    http://wordpress.org/plugins/business-directory-plugin/

  2. businessdirectoryplugin
    Member
    Plugin Author

    Posted 10 months ago #

    Hi Chris,

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

  3. businessdirectoryplugin
    Member
    Plugin Author

    Posted 10 months ago #

    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): http://fpaste.org/40992/96832771/.

    Hope this helps.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.