Category Filter

Posted in: Newspaper
Post count: 5

Hello,
I have defined category field to All categories but it shows no posts, only when I select a category it works.
I have this in error log:
[20-Jul-2021 16:15:47 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_wp_query() on null in /home/*/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php:128
Stack trace:
#0 /home/*/public_html/wp-content/plugins/td-standard-pack/Newspaper/includes/shortcodes/td_block_3.php(70): td_block->render(Array)
#1 /home/*/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): td_block_3->render(Array, ”)
#2 /home/*/public_html/wp-includes/shortcodes.php(343): td_global_blocks::proxy_function(Array, ”, ‘td_block_3’)
#3 [internal function]: do_shortcode_tag(Array)
#4 /home/*/public_html/wp-includes/shortcodes.php(218): preg_replace_callback(‘/\\[(\\[?)(td_blo…’, ‘do_shortcode_ta…’, ‘[td_block_3 td_…’)
#5 /home/*/public_html/wp-content/plugins/td-composer/includes/tdc_ajax.php(306): do_shortcode(‘[td_block_3 td_…’)
#6 /home/*/public_html/wp-includes/rest-api/class-wp-rest-server.php(1139 in /home/revistaveggie/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php on line 128

Post count: 27744

Hello,

So, I understand you have set the filer on block 3 to All categories, and then you get this error.
Please try to add again the block and made the same settings and see if the error appears.
Also, please let me know what version of the theme (if you have a child theme) and plugins and version of the PHP you have on your server.

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.