[gd_categories]
This topic contains 20 replies, has 4 voices, and was last updated by Alex Rollin 5 years, 1 month ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
August 23, 2019 at 11:45 am #504559
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-92947952e106c8090e8e2d2462782808R318By 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
August 25, 2019 at 11:33 pm #504854Hello, 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
September 3, 2019 at 9:16 am #506190Hi 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,
KiranSeptember 11, 2019 at 3:21 am #507537thank you and sorry – i as wel missed your replay.
Good news for me – have a nice day 😉
Mark
September 11, 2019 at 5:29 am #507538Hi 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
September 11, 2019 at 10:22 am #507573Let 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.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket