• Resolved mocaveman

    (@mocaveman)


    I like the category search screen However I want basically three sections on my website. One section would be a category screen showing icons for adverts. In another section I hope to use the plugin for a directory service. In my third section I want to have paid for ads. Are there filter capabilities or sending a parent category to a short code that would allow this? Currently seems to only work on “top level” categories.

    • This topic was modified 5 years, 5 months ago by mocaveman.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    sorry but i am not sure what are you trying to do? Can you explain a bit more clearly? To what shortcode and from where do you want send the parent category?

    Thread Starter mocaveman

    (@mocaveman)

    Menu/Navigation
    1. Listings Page : Advertisements for Materials for sale or need.
    2. Directory Page : Advertisements for Vendors / Authors who list Items in listings.
    3. Premium Ads Page : Advertisements in restricted categories that are paid for.

    Category Structure
    Listings
    rock
    dirt
    concrete

    Directory
    joes trucking
    tims trucking
    ABC Construction

    Premium Ads

    ACME Supply
    Construction Union
    Tractor Supply Company

    The short code [adverts_categories] resulting screen uses the large icons for categories to display a linked category icon screen. on each above page we only want the children categories to display.

    In my mind I would like to send a parent category as a parameter to [adverts categories] short code. That would cause it to filter the resulting page to only show the children categories large icons of the parent category sent.

    Thanks for your assistance.

    The site in question is : https://www.MaterialListingSolutions.com

    • This reply was modified 5 years, 5 months ago by mocaveman.
    • This reply was modified 5 years, 5 months ago by mocaveman.
    Thread Starter mocaveman

    (@mocaveman)

    Hello? I hope my second description was sufficient information. Please advise.

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    so basically, when clicking on one of boxes in [adverts_categories] you would like to see the list of sub-categories inside this category in the same layout as the [adverts_categories] is using?

    If so then i am afraid this is not really possible to do that at least not without customizing the original WPAdverts source code.

    Specifically, you would need to change:
    – shortcode_adverts_categories() function in wpadverts/functions/shortcodes.php
    – the wpadverts/templates/categories-top.php

    Note that the changes you will make in the original files will be overwritten on each WPAdverts update.

    Thread Starter mocaveman

    (@mocaveman)

    Sounds like current code will now allow. You almost got what I wanted. I don’t want to recursively travel down the tree from parent to child categories. I want to send a Parent category to [adverts_categories] and have it display only the children categories. Is this a code change I can make with child pages so they survive WPAdvert Updates?

    Plugin Author Greg Winiarski

    (@gwin)

    If i understand correctly then yes, these are the files to change.

    By using child-templates (as explained here https://wpadverts.com/documentation/child-themes-and-templates/) you can avoid having a categories-top.php file overwritten, but the changes in shortcodes.php will be always overwritten on WPAdverts update.

    One other option would be to make your own shortcode based on the [adverts_categories] shortcode, this would require some PHP knowledge but you would have a shortcode working exactly the way you would like it to and the WPAdverts updates would not delete your new shortcode.

    Thread Starter mocaveman

    (@mocaveman)

    Thanks, I will apply my basic PHP knowledge and see if I can’t accomplish this.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Filtered Category Large Icon search screen.’ is closed to new replies.