• Resolved kudros

    (@kudros)


    Hi! This is a great plugin, it really works. And I was surprised when it handled both TablePress tables and my manual tables. But my site contains content in categories, including tables, which I would like to make adaptive. Could you add a feature to enable adaptivity in categories?

    • This topic was modified 1 year ago by kudros.

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Nikolay Nikolov

    (@nnikolov)

    Hi, thanks. Where is the content loaded in the category coming from? Is it from the category description field?

    Thread Starter kudros

    (@kudros)

    Здравей! Виждам, че вие от България! Много приятна страна. Аз знам малко български. Ако позволите, ще продължа и ще упражня малко език))

    Да, котигорите съдержа контент в поле описание. Той контент съдържа шорткодове TablePress, примерно така: [table id=2 /]

    Погледнете скриншот: https://yadi.sk/i/ise7gKYREP8RBA

    Категория в фронтенд изглежда така: https://hotrentcar.com/bulgaria

    Plugin Author Nikolay Nikolov

    (@nnikolov)

    That is cool. I am not sure if it is allowed here to use any other language though. Also other visitors need to be able to understand.

    So the category description field that you use, this is the default one from WordPress or is it added by some plugin or theme? I see from the screenshot that the field has buttons in the editor, which is not normal. I tried putting there a tablepress shortcode and it did not work.

    Thread Starter kudros

    (@kudros)

    Yes, this is the default field. The Generate Press theme outputs the content. The buttons in the editor were the default.

    Plugin Author Nikolay Nikolov

    (@nnikolov)

    By default there are no buttons there. On my test site it is just a normal text box and can’t even put in HTML table tags in there.

    But if it is the default category description field, try adding this PHP code to your site using the Code Snippets plugin or a similar one. It should make my plugin work on that field too. And tell me if that worked.

    if ( function_exists( 'mtr_change_the_tables' ) ) {
        add_filter( 'category_description', 'mtr_change_the_tables', 99999999999 );
    }
    Thread Starter kudros

    (@kudros)

    I added this code to functions.php and it worked. Now the tables in the categories are handled as they should be. Thanks again. I think this feature can now be included in the upcoming update.

    Plugin Author Nikolay Nikolov

    (@nnikolov)

    OK, thanks for testing. I think I can include that. But I still don’t know how you even made the category description field to work with shortcodes and buttons. I can’t test it without that. Can you show me a list of all the plugins that you have? You can copy the list from the tools – site health – info tab – active plugins at /wp-admin/site-health.php?tab=debug

    It has to be from some plugin, or I guess maybe if you have the pro version of generatepress, since with the free one I don’t see that.

    Thread Starter kudros

    (@kudros)

    That’s right, I have the pro version of this topic. But that has nothing to do with it. I just have these fields in the headings by default in any theme. The standard Twenty Twenty-Three theme also has these fields. In older versions of WordPress did not have this, but starting from some version there was a full-fledged editor and fields.

    Most likely it’s a template that is capable of displaying content in a category, so it adds features s editor. You should change your theme and try opening the category editor again.

    • This reply was modified 12 months ago by kudros.
    Plugin Author Nikolay Nikolov

    (@nnikolov)

    It is released. Thanks for the information and for testing. By the way I found that the rankmath plugin changes the category description field.
    Regards.

    Thread Starter kudros

    (@kudros)

    Thanks for the plugin update!
    I turned off Runk Match and took this screenshot. The extra fields have been removed, but the editor hasn’t changed. I think the reason for the changed editor is exactly in the template.

    https://yadi.sk/i/nKmUBBn9HKybOg

    Plugin Author Nikolay Nikolov

    (@nnikolov)

    No problem. You may have multiple things that change that field I guess. But Rank Math is one of them. As soon as I activate it the field gets buttons and they are gone if I deactivate it.

    I am marking this topic resolved by the way.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Adaptive tables in categories’ is closed to new replies.