• Resolved v0van

    (@v0van)


    PostX 2.8.7
    WordPress 6.1.1

    I took the “Post_Grid_#1” block (which had 8 elements) from your sample blog layouts.
    I reduced the number of elements in the admin panel to 4.
    PostX_query_posts=4__admin.png – https://ibb.co/k9pf0KQ
    However, the site still displays 8 – PostX_query_posts=8.png – https://ibb.co/3SmXPYL
    I tried in different ways. Flush cache. Specify categories of records. I changed the number 4 with up and down arrows. nothing helped!
    this block has 4 entries in the admin panel, and 8 are displayed on the site.
    Moreover, all other options work fine both for this block and for other blocks.

    I took another block “Post_Grid_#1”. it had 9 entries by default (3×3). I installed 3 (3×1). Works.

    I copied this block and set it to 4 (4×1).
    PostX_query_posts=4x1__admin.png – https://ibb.co/ydXkFg4
    And the site now has 9 records (4×2+1) – PostX_query_posts=4x1__admin.png – https://ibb.co/DYVZtps

    error repeats!
    It seems that after the first save in the database, the value of “Number_of_Posts” on the site works fine, and after the second it takes the value before the first save.

    thus, when saving block properties, the number of elements in “Query_Builder” in “Number_of_Posts” is saved in the database, but the site takes a different value from the database. how?
    I ask you to check how the “Number_of_Posts” value is taken from the database on the site for the “Post_Grid_#1” block

    RU:

    PostX 2.8.7
    WordPress 6.1.1

    Я взял блок “Post_Grid_#1” (в котором было 8 элементов) из Ваших примеров готовых макетов блогов.
    Я уменьшил в админке количество элементов до 4.
    PostX_query_posts=4__admin.png – https://ibb.co/k9pf0KQ
    Однако на сайте по прежнему отображается 8 – PostX_query_posts=8.png – https://ibb.co/3SmXPYL
    Я пробовал по разному. Сбрасывать кэш. Указывал категории записей. менял цифру 4 стрелочками вверх-вниз. ничего не помогло!
    в админке у данного блока 4 записи а на сайте отображается 8.
    Причём все остальные опции работают нормально и у этого блока и у других блоков.

    Я взял другой блок “Post_Grid_#1”. в нём было по умолчанию 9 записей (3×3). Я установил 3 (3×1). Работает.

    Я скопировал этот блок и установил 4 (4×1).
    PostX_query_posts=4x1__admin.png – PostX_query_posts=4x1__admin.png – https://ibb.co/ydXkFg4
    А на сайте теперь 9 записей (4×2+1) – https://ibb.co/DYVZtps

    ошибка повторяется!
    Похоже после первого сохранения в БД значение “Number_of_Posts” на сайте работает нормально, а после второго – берёт значение до первого сохранения.

    таким образом, при сохранение свойств блока количество элементов в “Query_Builder” в “Number_of_Posts” сохраняется в БД, но на сайте берётся другое значение из БД. как ?
    прошу вас проверить каким образом из БД берётся значение “Number_of_Posts” на сайте для блока “Post_Grid_#1”

    • This topic was modified 1 year, 8 months ago by v0van.
    • This topic was modified 1 year, 8 months ago by v0van.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Tonmoy

    (@azimkhan123)

    Hello @v0van ,

    Thank you for reaching us. I have tested this issue on several sites but could not generate this error. This might be occurred because of compatibility issues.

    Try deactivating all the plugins and see if the problems persist. If the issue is no longer there, then activate the plugins one by one to see which plugin is causing the issue. If you find an issue with a 3rd Party Plugin, reach out to the developers of the 3rd party plugin.

    Do let me know about the situation.

    • This reply was modified 1 year, 8 months ago by Tonmoy.
    Thread Starter v0van

    (@v0van)

    thanks for checking.

    This might be occurred because of compatibility issues.

    probably.


    Try deactivating all the plugins and see if the problems persist.

    I don’t want to do this.

    I need a plugin to not repeat the names of variables and fields with other plugins, and not to check it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Check please how Number_of_Posts value is taken from DB on site for Post_Grid_#1’ is closed to new replies.