[gd_categories]

This topic contains 20 replies, has 4 voices, and was last updated by  Alex Rollin 4 years, 8 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #504559

    Kiran
    Moderator
    Post count: 7069

    Hi Mark,

    gd_categories widget/shortcode has own sorting. Categories on map loading with WordPress default sorting(a to z).

    Two things implemented and it will be in next release.
    1) Option added in gd_categories to show CPT title, so it will easily separate categories by CPT title.
    2) Filters added to sort categories in map.
    – orderby: https://github.com/AyeCode/geodirectory/commit/21b200d28375a99cb70a562192f628529b1ad35a#diff-92947952e106c8090e8e2d2462782808R308
    – order: https://github.com/AyeCode/geodirectory/commit/21b200d28375a99cb70a562192f628529b1ad35a#diff-92947952e106c8090e8e2d2462782808R318

    By default it is using WordPress default sorting(a to z).

    Please apply patch available at here https://github.com/AyeCode/geodirectory/commit/21b200d28375a99cb70a562192f628529b1ad35a#diff-92947952e106c8090e8e2d2462782808R318

    Let us know.

    Kiran

    #504854

    Mark Wolf
    Expired Member
    Post count: 100

    Hello, Kiran,

    thank you very much. This is good news.

    Since I’m not a coder, I’ll have to wait for the update. Or you can give me a little instruction in which file I have to add or exchange which code.

    Is there already a schedule when this will be implemented?

    Another question about filtering CPTs.
    Is it then possible to display individual CPTs?
    The CPT title and the sorting A-Z helps to make it clearer. But with e.g. 20 CPTs with 20 categories each, very many are displayed. It would be desirable to exclude CPTs. Or you can only display those CPTs that are named in the shortcode.

    I have to renew my membership in September. I like to do that when it is foreseeable and really comes. Because this is a key criterion for me to be able to use gd.

    Best regards, Mark

    Translated with http://www.DeepL.com/Translator

    #506190

    Kiran
    Moderator
    Post count: 7069

    Hi Mark,

    Sorry i missed your last reply.

    Is there already a schedule when this will be implemented?

    Those feature already implemented but it will be next release. Next release may be within 2nd or 3rd week of this month(may vary).

    Is it then possible to display individual CPTs?
    The CPT title and the sorting A-Z helps to make it clearer. But with e.g. 20 CPTs with 20 categories each, very many are displayed. It would be desirable to exclude CPTs. Or you can only display those CPTs that are named in the shortcode.

    If your choose post_type=0 in shortcode or Post Type = Auto in widget then it will lists all the post types. But if you choose specific post type then it will list categories form particular that CPT.
    For now you can put separate gd_categories shortcode/widget for each CPT if you want to show individual CPTs.
    We have already task in our list to include/exclude CPTs it will be in future version.

    Best Regards,
    Kiran

    #507537

    Mark Wolf
    Expired Member
    Post count: 100

    thank you and sorry – i as wel missed your replay.

    Good news for me – have a nice day 😉

    Mark

    #507538

    Mark Wolf
    Expired Member
    Post count: 100

    Hi Kiran,

    i swapped the two files with the github files as suggested.
    – includes/class-geodir-maps.php
    – includes/widgets/class-geodir-widget-categories.php
    Thanks again for that Link. Here are my results.

    1. it works with
    [gd_categories post_type=0] – All post types are displayed.

    Two things implemented and it will be in next release.
    1) Option added in gd_categories to show CPT title, so it will easily separate categories by CPT title.

    The CPT title is not displayed by me. See ScreenShot 1
    Question 1: Which options are available for catecoies and maps shortcode to show CPT Title?

    2. if I enter another CPT in the Shortcodes option, [gd_categories post_type=’gd_gesundheit’] it works great for category and maps – ty.
    screenshot 2.

    2. Are there any other options for the category and maps SHortcodes and widgets i should know?

    For now you can put separate gd_categories shortcode/widget for each CPT if you want to show individual CPTs.

    Yes, that works well and now I can make it my way.
    Filter is just more comfortable – but that’s how it works – great.

    We have already task in our list to include/exclude CPTs it will be in future version.

    That’s great. Is there already a Github file for this option?

    Have a good start into the day – Mark

    Translated with http://www.DeepL.com/Translator

    #507573

    Alex Rollin
    Moderator
    Post count: 27815

    Let me try to answer your questions here:

    1. Titles – the available options are shown in the widget or the shortcode builder. A new option for GD Categories will be available in the next release, which is coming very soon.

    2. All the available options are in the shortcode builder or widget or block. Make sure to click the button to reveal all the advanced options.

    3. There is not, it will be a feature for future versions. In the meantime you can simply use multiple shortcodes, one for each CPT.

    I hope your questions have been answered. Please feel free to open a new topic for any new questions.

Viewing 6 posts - 16 through 21 (of 21 total)

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

Open Support Ticket