Setting up Directory

Hi,

I'm trying to set this up but the custom fields are not showing how they are in your instructions. Where can I find this? Also how can I change the /listings-category/ slug to something else? which file is that in?
Lastly, my profile shows on all posts, is there a way to exclude this on the directory listings?

Thanks

  • Jack Kitterhing
    • Code Norris

    Hi there @Malabu

    I hope you are well today.

    When you say

    the custom fields are not showing how they are in your instructions

    How do you mean specifically please?

    The listings-category slug is how the plugin works out of the box, and it would require custom coding to change this to work, however you may be able to do something with your .htaccess to create a rewrite, I wouldn't recommend doing this though as it could cause problems. EDIT: Ignore this part look for my below posts

    Can I have a link please to your profile on the directory listings to take a look please?

    Thank you!

    Kind Regards
    Jack.

  • Malabu
    • WPMU DEV Initiate

    In the instructions it has a screenshot of the custom fields display for Taxonomies, Custom post types etc where you can put in age etc. I don't have that option, its only the WP admin default custom fields option that shows.

    I thought that was because Custom Press needed to be installed but after I installed it I realized you guys say not to use it. So its not activated, but still I'm not seeing how you show it in the admin.

    I want to change /listings/ to /suppliers/ can I do that without a problem?

    How do I create the proper category structure to achieve what I need:

    Currently because of WP my URLs are set like http://domain.com/country-vendor-type/vendor-name I need it to be http://domain.com/country/vendor-type/vendor-name The idea is that users should be able to search a country find a category, and then search the vendors in that category - like a photopgraher called Bob in Belize. How can I structure my URL's this way - how should I use tags? for countries?

    Does the system allow for easy searching within categories?

  • Malabu
    • WPMU DEV Initiate

    I've found the Custom Press install in my admin bar - sorry. I thought it would have been under the listings section where the Directory plugin info is. So that solves that question.

    I'm also not sure where to find the default theme that is shown in the demo - is there one?

  • Jack Kitterhing
    • Code Norris

    Hi there @Malabu

    I hope you are well.

    I have changed the name in my original post :slight_smile:

    You can find the default the theme included by downloading the plugin, unzip it > themes > default, zip that file up and upload it via wp-admin > themes > upload.

    To change the slug from listings to something else, before you set up directory, (you can activate it), set your permalinks to post name (this is what I done), then in CustomPress go to content types , look for directory listings > edit > scroll down and on the left you'll see has archive, make sure that's true and set a custom archive slug and then you'll also see rewrite, make sure that's true and enter your custom slug, enter your main slug there, so i.e suppliers.

    With the categories do you want it to be parent, sub sub or different to that?

    Thank you!

    Kind Regards
    Jack.

  • Malabu
    • WPMU DEV Initiate

    And the last part of my initial question:

    How do I create the proper category structure to achieve what I need:

    Currently because of WP my URLs are set like http://domain.com/country-vendor-type/vendor-name I need it to be http://domain.com/country/vendor-type/vendor-name The idea is that users should be able to search a country find a category, and then search the vendors in that category - like a photopgraher called Bob in Belize. How can I structure my URL's this way - how should I use tags? for countries?

    Does the system allow for easy searching within categories?

  • Jack Kitterhing
    • Code Norris

    Hi there @Malabu

    I hope you are well today.

    <So to confirm - the directory theme is a theme that will 'theme' my entire site, rather than just the directory?

    Yes that's correct it will theme your entire site and not just the directory part.

    Glad the slugs change worked correctly!

    I'm a little confused at this category part

    You say

    Currently because of WP my URLs are set like http://domain.com/country-vendor-type/vendor-name

    But you want them like http://domain.com/country/vendor-type/vendor-name

    You'd need to categorize further, could I get a screenshot of how you have your category's set right now?

    Tags are searchable, they are assigned to listings/posts for easily searchable content, so you may want to use tags countries but that would be up to you, people use tags in all different ways.

    i.e, if you wrote a post for a photographer, and in it you mentioned what camera they used, lens etc, then you might put each one of them as a tag.

    The searching function is limited by WordPress's own ability's, you can filter by category, and you also might want to try our https://premium.wpmudev.org/project/custom-google-search/

    Thank you!

    Kind Regards
    Jack.

  • Malabu
    • WPMU DEV Initiate

    The categories are set like that (outside of the plugin). It was just how i set my site up. But now I want to restructure the URL's and do it so that it is best for the directory... but I need to know how to set this up in the directory.

    What do I set categories as? countries or vendor type? How do I do subcategories? Does my question make more sense now?

    Currently in the directory I don't know what to set the categories as - I only know how I'd like the URL to read.

  • aristath
    • Recruit

    If you need hierarchical slugs then you should be using a hierarchical taxonomy!

    You can change the default taxonomy to be hierarchical if it is not already (I believe it is).
    So if you want your slugs to look like this:
    http://domain.com/country/vendor-type/vendor-name
    Then you'd have to create categories with the following structure:

    - Country 1
        - vendor-type-1
            - vendor-name-1
            - vendor-name-2
        - vendor-type-2
            - vendor-name-1
            - vendor-name-2
    - Country 2
        - vendor-type-1
            - vendor-name-1
            - vendor-name-2
        - vendor-type-2
            - vendor-name-1
            - vendor-name-2

    That unfortunately is totally impractical... but is the only solution that I am aware of!

    Cheers,
    Ari.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.