Supreme directory homepage popular categories

This topic contains 3 replies, has 3 voices, and was last updated by  Alex Rollin 6 years, 12 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #410619

    Hi, On the home page of the supreme directory I only want to show parent categories in the popular categories widget there.

    #410621

    Guust
    Moderator
    Post count: 29970

    The popular categories always shows the categories with the most listings, aka “popular” categories.
    If you only want to show a selection of other categories, you will have to replace the widget with some custom code.

    Thanks

    #410623

    Guust
    Moderator
    Post count: 29970

    Hi Kieran, after a chat with the developers to check my answer, I suggest you have a look at this article:
    https://wpgeodirectory.com/docs/supreme-theme-faqs/

    Edit the following in /wp-content/themes/supreme-directory/inc/geodirectory-compatibility.php

    echo do_shortcode('[gd_popular_post_category category_limit=5]');

    and change it to

    echo do_shortcode('[gd_popular_post_category category_limit=5 parent_only=true]');

    Let us know how you went.

    #410687

    Alex Rollin
    Moderator
    Post count: 27815

    Hello Kieran!

    Let us know if that works for you.

    Also, you may want to consider using a new page for your GD Home (Permalinks) and then adding Widgets to the home page. If you use GD Widgets you will have all the normal options that are available.

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount