• Resolved jopa

    (@justtralala)


    Hi, I am trying to display posts from a specific category alphabetically (in Russian) and can not make it work. This is the shortcode I use:

    [a-z-listing display=”posts” taxonomy=”category” terms=”praktika” alphabet=”Аа,Бб,Вв,Гг,Дд,Ее,Жж,Зз,Ии,Кк,Лл,Мм,Нн,Оо,Пп,Рр,Сс,Тт, Уу,Фф,Хх,Цц,Чч,Шш,Щщ,Ээ,Юю,Яя”]

    There are two issues:
    – it doesn’t show any posts from the category, just the alphabet
    – it misses one letter in the alphabet – Russian У – it normally is in between T and Ф.

    I don’t have any error messages, nothing in Chrome console indicates the issue, the page has header, footer, sidebar, as usual, it displays page title and the alphabet only.

    Thank you in advance!

    • This topic was modified 7 years, 3 months ago by jopa.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    The reason your letter У is missing is because you have an empty space after Тт,. Delete the empty space and it should be fixed. The complete alphabet should be (you can copy+paste this):

    alphabet="Аа,Бб,Вв,Гг,Дд,Ее,Жж,Зз,Ии,Кк,Лл,Мм,Нн,Оо,Пп,Рр,Сс,Тт,Уу,Фф,Хх,Цц,Чч,Шш,Щщ,Ээ,Юю,Яя"

    With regard to the posts not being visible I’m not sure what the problem is there. Can you check your server for an “error log” – your hosting provider might make this easily accessible via a control panel page – to see if there are any messages that might indicate where I’ve broken it?

    Dan.

    Thread Starter jopa

    (@justtralala)

    Hi Dan,
    Thank you for the prompt response. Unfortunately, the error log is empty – there is literally nothing there. I tried switching to a default theme – also didn’t solve it. Deactivating all other plugins also didn’t help 🙁

    I even thought there might be a URL mess-up because normally WP will put the post name part of the URL in Russian, so we have to use the plugin that transliterates URLs to Latin. Deactivated it, created a test post with partly Russian URL – didn’t show up on the page either.

    It is not a Gutenberg issue either (installed Classic Editor plugin to check that)

    Plugin Author Dani Llewellyn

    (@diddledani)

    One possible thing to check is that you are using plain " symbols on the parameters. Accidentally using so-called typographic quotes will likely break. For example, your paste above includes , which is a different symbol. While it is likely those are just because of the forum, it’s worth checking to be sure.

    Thread Starter jopa

    (@justtralala)

    Unfortunately, it didn’t help, and still no errors in the log.

    Thread Starter jopa

    (@justtralala)

    I did some more testing – the issue is somewhere on the way to display posts – the plugin shows pages if I take out the taxonomy parameter. I installed it to another site on different hosting to test, and just copypasted the whole shortcode from the initial site there. It shows pages and fails to show posts for some reason.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Aha, I think I confused you with the similarity between display="posts" and showing the post-type of posts. To show posts instead of pages, because pages is the default, you need to specify an extra parameter. Try this to see if it helps; note the extra post-type parameter, which is set to the post-type name post; the default for the post-type parameter when unspecified is post-type="page":

    [a-z-listing display="posts" post-type="post" taxonomy="category" terms="praktika" alphabet="Аа,Бб,Вв,Гг,Дд,Ее,Жж,Зз,Ии,Кк,Лл,Мм,Нн,Оо,Пп,Рр,Сс,Тт,Уу,Фф,Хх,Цц,Чч,Шш,Щщ,Ээ,Юю,Яя"]
    
    • This reply was modified 7 years, 3 months ago by Dani Llewellyn. Reason: d'oh. fix the shortcode - missed the shortcode name!
    Thread Starter jopa

    (@justtralala)

    And it worked like a charm! Thank you very much!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Not working for posts on a specific category’ is closed to new replies.