• Resolved robertmartinot

    (@robertmartinot)


    Hey guys,

    I am using your plugin with the Listable theme. Now, I have a listings page with the [jobs] shortcode. But I have certain categories I wish to hide in this page.

    I thought I found it in your documentation, but it doesnt seem to work for me. What I did was [jobs categories=belleza, aventura, bienestar, gastronomia].

    But now its only showing the belleza category, and not all the others.
    my website is https://www.bonoz.co.

    What i want to hide is the gift boxes from the listings. It would also be possible for me to put all the boxes in one category, and hide this category.

    Let me know what to do.

    Regards,
    Robert

    https://www.ads-software.com/plugins/wp-job-manager/

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Contributor Lisa Schuyler

    (@lschuyler)

    Hi @robertmartinot!

    Try adding quotes to your list of categories inside the shortcode, like this:

    [jobs categories=”belleza, aventura, bienestar, gastronomia”]

    Thread Starter robertmartinot

    (@robertmartinot)

    Hey Lisa,

    Unfortunately that did not do the trick for me. Still showing up just the category with Belleza.

    Any other idea’s?
    Thank you so much for replying though!

    Plugin Contributor Adam Heckler

    (@adamkheckler)

    What i want to hide is the gift boxes from the listings.

    Can you upload a screenshot that shows what you mean by this? I’m not sure I understand what you’re trying to hide. (There may be a better way than to alter the [jobs] shortcode.)

    Thanks!

    Thread Starter robertmartinot

    (@robertmartinot)

    Hey Adam,

    Okay, Im gonna try be super clear with you. In my case I have 4 different kind of ‘listings’. 1) the listings of the companies (which offer giftcards on our website); this is fine and needs no alterartions (eg: https://www.bonoz.co/listings/viva-spa/)

    However, when a customer wants to checkout they can add a 2. giftcard, 3.giftbox, and a 4.gift-note, of their choice. These are all entered as listings (just without adress, openingtimes, or anything. These (2,3,4) I present on a page without map.

    These (2,3,4) I want to hide in the regular listings. Only when people visit the specific link for them (eg: https://www.bonoz.co/listings-no-map/?search_keywords=caja&submit=) they find them (because the keyword is filled in on the link).

    The problem is, now the 2,3,4 also show up in the regular listings page when you look for all listings. (eg: https://www.bonoz.co/listings/)

    I hope im clear. And I hope you can help!

    Regards,
    Robert

    Plugin Author Brandon Kraft

    (@kraftbj)

    Code Wrangler

    Hi Robert,

    I tried for a bit and I couldn’t duplicate the problem on a test site. If the product is in multiple categories, then using categories could be problematic as it would include it if it is any category.

    This would be something outside of our scope of support to help with, but another option is add these as different job types (Listible might call this something different, by default it would Freelancer, Full Time, etc) and then use the job types shortcode argument ( https://wpjobmanager.com/document/shortcode-reference/ ) to filter it.

    Cheers,

    Thread Starter robertmartinot

    (@robertmartinot)

    Hey Brandon,

    Nice job you have, and your reply already makes me happy. Its working!

    So, first off, the job types is completely disregarded in Listable. In following updates they will remove this filter completely I have understood. Currently its hidden.

    But, the good news is, the product is not in multiple categories. I can put the giftboxes, giftcards and giftnotes all in one category and hide this from the regular listings page. Ill make another page with (listings -nomap – and have their repspective keywords filled in on all links).

    Would this make it work?
    Regards,
    Robert

    Plugin Author Brandon Kraft

    (@kraftbj)

    Code Wrangler

    Hi Robert,

    That sounds like it would. Cheers!

    Thread Starter robertmartinot

    (@robertmartinot)

    Brandon,

    Good that it would work! However, my question is ‘ how to make this work’ ?
    How do you hide certain categories from the listing page?

    I have tried to ‘show’ only certain categories. By adding the following:
    [jobs categories=”belleza, aventura, bienestar, gastronomia”] or
    [jobs categories=belleza, aventura, bienestar, gastronomia]
    But then only belleza shows up in the results. But I need all of these to show up.

    Or, alternatively, is there a way of ‘hiding’ certain categories? With a custom hide categories shortcode?

    Would love to hear back from you!

    Regards,
    Robert

    Plugin Author Brandon Kraft

    (@kraftbj)

    Code Wrangler

    Can you try without the spaces? e.g. "belleza,aventura,bienestar"? In testing on my site, I couldn’t duplicate it not working.

    Cheers!

    Thread Starter robertmartinot

    (@robertmartinot)

    Hey Brandon,

    Nope, still only the first one showing up in the listing results. I changed around belleza and aventura, and it does change but only the first in the list gives results. So now I tried:
    [jobs categories=bienestar,belleza,gastronomia]
    [jobs categories=bienestar, belleza, gastronomia]
    [jobs categories=”bienestar,belleza,gastronomia”]
    [jobs categories=”bienestar, belleza, gastronomia”]

    Also, it automatically selects one of the ‘categories’ in the drop down options in the list of filters.

    Now we are trying to define all the categories it should show. Alternatively, is there no way to hide a category from the listings shown?

    Would love to hear back from you.

    Regards, Robert

    Plugin Author Brandon Kraft

    (@kraftbj)

    Code Wrangler

    The dropdown showing is interesting, can you add show_categories='false', e.g. [jobs categories="bienestar,belleza,gastronomia" show_categories="false"]?

    Thread Starter robertmartinot

    (@robertmartinot)

    Hey brandon,

    Thanks for your quick replies.
    What this does is it removes the categories filter completely. Which is not really what I intended to have.

    But, what is interesting is that it is now showing all categories. It is completely disregarding the ‘categories=”bienestar,belleza,gastronomia”‘ part of the shortcode.

    So, unfortunately, this is not it either.
    What do we try next?

    Thread Starter robertmartinot

    (@robertmartinot)

    Hey brandon,

    I have now done it by job types. This works like a charm.
    I have added two types of job types ‘Companies’ and ‘Giftboxes’.
    Now I have the following:
    [jobs selected_job_types=”companies”]

    And it is showing up fine.
    Im gonna ask the guys from Listable to PLEASE not remove the filter for ‘types’ (as they said they would in future updates)

    Thank you soo much for all your help!
    Really! Appreciate it!

    Plugin Author Brandon Kraft

    (@kraftbj)

    Code Wrangler

    Thanks for all of your efforts. I’m not sure the root cause of what you were seeing, but glad that you have it as you want it!

    Thread Starter robertmartinot

    (@robertmartinot)

    Hey guys,

    First of all, i’m quite surprised to see this post marked as resolved. As, until now, its not!
    Another surprise for me is that the plugin authors, or happiness engineers of the plugin could not provide me with the following simple shortcode:
    [jobs categories=”belleza”, “aventura”, “bienestar”, “gastronomia”]

    So for those looking to do the same as I wanted. Here you have the solution. Provided to you not by Brandon or Adam or me.. but David Gabay! A listable forum member!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Hiding certain Categories in [jobs]’ is closed to new replies.