• Like another user who posted a while ago (but didn’t post any resolution), I am having issues with Yada Wiki doing listings in alphabetical order. Essentially, I have several wiki posts tagged with a wiki category, but when I insert a TOC into a post (Add Wiki Listing > Listing Type: Output Wiki Category > Category: Categories (103) > Order: Title A-Z), the listings are still in the order they were created and not alphabetical order.

    Here is the text that is inserted into the post:
    [yadawikitoc show_toc=”true” category=”Categories” order=”title”]

    In the previous support question, something was mentioned about nested categories… Is this something that can create an issue? Essentially, I have a wiki page tagged with category1, but then on that wiki page I want to put a TOC of category2.

    Any ideas?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author dmccan

    (@dmccan)

    Hi @dandreanicholas,

    I’m not at a place where I can test it right now, but if I recall, the issue is when you assign an article to a category that is in a hierarchy, you only need to check the bottom / last item, not the items above. If you also click the items above then those are output as well. Could you check and try that, please?

    Thanks,

    David

    Thread Starter dandreanicholas

    (@dandreanicholas)

    David,

    The articles themselves are not double-tagged in a hierarchy. They are just being displayed on a second article that has a different category.

    For what it’s worth, the alphabetical sorting works with an index of all the pages (and I much prefer that format for what we’re doing), but obviously this is an index of all the pages and not a sole category.

    Nick

    Thread Starter dandreanicholas

    (@dandreanicholas)

    And by “index of all the pages” I mean the “Output Index” dropdown instead of the “Output Wiki Category” option. Output Wiki Category is giving me the issues.

    Plugin Author dmccan

    (@dmccan)

    Hi @dandreanicholas,

    It seems to be working for me, but maybe I’m not doing the same things you are, so here are some details to help:

    The page is in the Tasty category and the output is the Cakes category. This is this shortcode:

    [yadawikitoc show_toc="true" category="Cakes" order="title"]

    See screenshot: https://prntscr.com/gc9or6

    I added the 1st and 3rd items just now, the other items were entered months ago. The categories assigned to those article titles are:

    Absolute Favorite Cake – Carrot Cake (new)
    Blackforest Cake – Chocolate Cake
    Delicious and Nuttier – Walnut Cake (new)
    German Chocolate – German
    Midwest Chocolate – Chocolate Cake
    Monkey Treat – Banana Cake
    Plain Jane – Vanilla Cake
    Tropical Orange – Orange Cake

    The categories for my “Snack Wiki” look like this: https://prntscr.com/gc9rai

    One thing I see in your first message is you mention something about Category: Categories (103). Do you have all of your categories under a category called Categories?

    Does anything above provide a clue?

    Best regards,

    David

    Thread Starter dandreanicholas

    (@dandreanicholas)

    Ah, I think I understand the issue.

    Essentially, I have a glossary of terms, where each wiki entry title is the name of the word. For example, for a glossary of fruit, the wiki page for Apple would have a description of an apple in the body, and the wiki page for Banana would have a description for a banana in the body.

    I was tagging each entry with the category “Glossary 1” since I thought I could arrange all of the wiki entries tagged with glossary in alphabetical order. I would but them all not under a category, but I have multiple glossaries I would like to separate “Glossary 2,” etc. The TOC I guess only outputs the pages by CATEGORY NAME and not PAGE NAME.

    Is there a way to do a TOC in alphabetical order for all the pages tagged with a specific category?

    Plugin Author dmccan

    (@dmccan)

    Hi @dandreanicholas,

    The TOC I guess only outputs the pages by CATEGORY NAME and not PAGE NAME.

    No, for a given category, the articles assigned to that category will be output in alphabetical order.

    I am a little perplexed. I’m not understanding or there is something else going on:

    – I created a new site called Produce. I created two categories, Fruit and Vegetable and created a bunch of wiki articles. I titled the articles by the name (Banana, Lettuce, etc) and assigned them to either category. I then used the shortcode for outputting the category Fruit in alphabetical order by Title and it worked fine. All of the articles assigned to the Fruit category were output in the correct order by the title of the wiki article. That seems to be what you are wanting. Is that correct?

    – Is there a link to see a page with the incorrect output? Perhaps you can provide some screen shots or samples to show how you have your categories organized, some list of pages to show how you have them assigned to those categories, and then how they are actually getting output? If you can provide the actual words you are using then I can setup a test that mirrors what you are doing. I’m not sure what could be interfering with the correct output: Maybe numbering the articles or special characters?

    – Just to check, is it possible that you have some special database sorting, language setting, other plugins that manipulate categories, sorting, or filter output? Are these wiki articles or regular posts or pages? Any special tricks you are using to get the output you need that might be playing a role? Are we referring to the Wiki Categories, or tags or Post categories?

    Thanks,

    David

    Thread Starter dandreanicholas

    (@dandreanicholas)

    I’m sorry this is so late… This got put on the back burner for a while.

    Attached are screenshots of each part of the process.

    I created a series of wiki posts (in non-alphabetic order) through “Add New” under “Wiki Pages” and tagged each with the appropriate category.
    Fruit: https://imgur.com/AikS3YN
    Vegetables: https://imgur.com/OkU5XyA

    I then created a page with two table of contents, one with with the fruits and one with the vegetables: https://imgur.com/lpKqhnr

    This is the output: https://imgur.com/3pQmldM

    I do not have any special database sorting, language setting, and as far as I know nothing that should conflict with the plugin.

    These are wiki articles listed in a wiki article.

    I am tagging each wiki article with a category and each table of contents article with an overview category (though I did not tag the TOC page in the above examples, it is just a normal wiki article).

    This is specifically referring to the wiki categories and not the wiki tags.

    Let me know if this sheds any light on the situation. Thanks so much.

    Nick

    Plugin Author dmccan

    (@dmccan)

    Very odd. I’m sorry you are having issues. I tried to recreate it again and got this:

    https://cl.ly/1p3b0f3i1839

    This is the article list:

    https://cl.ly/273t1o0m3u1d

    This is the page with the shortcodes:

    https://cl.ly/2M2b2x3w2Q1r

    I installed the plugin “Query Monitor”. The code is using the get_posts function and I filtered the output on “WP_Query->get_posts”. I think these are the queries WordPress ran:

    https://cl.ly/023c3r2g0G0w

    This is the code that outputs the shortcode:

    https://cl.ly/2Y060R3K303k

    The only other thing I can think for you to try is to switch to a default WordPress theme and disable all other plugins.

    Thread Starter dandreanicholas

    (@dandreanicholas)

    Hmm, must be an issue with my theme or something then. I’m glad to know I was at least using the plug-in correctly.

    I’ll poke around and see if I can figure out the issue.

    Thanks for a great plug-in and your help in figuring this out!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Wiki Category Alphabetical Order’ is closed to new replies.