Dear support,
I just bought & installed the Newspaper theme.
Before we had Porto, not we switched … and although there are not many plugins incolved and the install is pretty new, the there is an error in the layout of posts. They show boxed instead of full width, the wordpress edotor bar is missing although being logged in, and below there is an error message.
Here’s a post affected: http://kiddyrocks.dev.onpressidium.com/diese-erziehungsratgeber-musst-du-lesen/
And here is the error log (… or part of it, that shows the error):
Dec 15 15:16:33 192.168.200.51 apache2[2502]: [u919] [kiddyrocks.dev.onpressidium.com] [e80741908108becb] [46.223.162.242] [error] [client 192.168.201.163:52334] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function get_post_datetime() in /kiddyrocks-dev-www/wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php:671\nStack trace:\n#0 /kiddyrocks-dev-www/wp-content/plugins/td-standard-pack/Newspaper/parts/single/loop-single-6.php(32): td_module_single_base->get_item_scope_meta()\n#1 /kiddyrocks-dev-www/wp-content/plugins/td-standard-pack/Newspaper/parts/single/single_template_6.php(117): require_once(‘/kiddyrocks-dev…’)\n#2 /kiddyrocks-dev-www/wp-includes/template-loader.php(78): include(‘/kiddyrocks-dev…’)\n#3 /kiddyrocks-dev-www/wp-blog-header.php(19): require_once(‘/kiddyrocks-dev…’)\n#4 /kiddyrocks-dev-www/index.php(17): require(‘/kiddyrocks-dev…’)\n#5 {main}\n thrown in /kiddyrocks-dev-www/wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php on line 671′
Currently the site is installed in a dev environment.
Any idea what the error might be?
Thanks,
Tom
The 10.2 update screws up the Post Preview function on our site – in Preview mode the content renders as a narrow central strip, with all text to the right missing. An error message appears at the end of the post (see below). It is impossible to test the post appearance this way. Fortunately the posts render correctly when published, but having to publish before you see the appearance is a bad solution. Can you look at this and fix please? BTW, the 10.1 update did not show this problem.
ERROR MESSAGE
Fatal error: Uncaught Error: Call to a member function format() on boolean in /home/ethical1/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php:672 Stack trace: #0 /home/ethical1/public_html/wp-content/plugins/td-standard-pack/Newspaper/parts/single/loop-single-8.php(33): td_module_single_base->get_item_scope_meta() #1 /home/ethical1/public_html/wp-content/plugins/td-standard-pack/Newspaper/parts/single/single_template_8.php(53): require_once(‘/home/ethical1/…’) #2 /home/ethical1/public_html/wp-includes/template-loader.php(98): include(‘/home/ethical1/…’) #3 /home/ethical1/public_html/wp-blog-header.php(19): require_once(‘/home/ethical1/…’) #4 /home/ethical1/public_html/index.php(17): require(‘/home/ethical1/…’) #5 {main} thrown in /home/ethical1/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php on line 672
There has been a critical error on your website.
Drafted posts can not be preview properly and this error is shown at the very bottom of the live preview page. The image cannot be seen and the css designs are also not shown untill the posts are published:
“Fatal error: Uncaught Error: Call to a member function format() on boolean in /home/techsiti/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php:672 Stack trace: #0 /home/techsiti/public_html/wp-content/plugins/td-standard-pack/Newspaper/parts/single/loop-single-7.php(33): td_module_single_base->get_item_scope_meta() #1 /home/techsiti/public_html/wp-content/plugins/td-standard-pack/Newspaper/parts/single/single_template_7.php(93): require_once(‘/home/techsiti/…’) #2 /home/techsiti/public_html/wp-includes/template-loader.php(98): include(‘/home/techsiti/…’) #3 /home/techsiti/public_html/wp-blog-header.php(19): require_once(‘/home/techsiti/…’) #4 /home/techsiti/public_html/index.php(17): require(‘/home/techsiti/…’) #5 {main} thrown in /home/techsiti/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php on line 672”
I have included pictures of the live preview page of drafted posts on dropbox: https://www.dropbox.com/sh/mfw93ma182ljjcn/AABOmv5hE3L6HJ_8fhqHd78Ia?dl=0
Hi,
If you want to remove the Latest article you need to change the page template to default -> https://forum.tagdiv.com/page-templates-2/
If you want to change the Latest Articles text please check in Homepage Latest Articles in Posts Loop Settings -> http://prntscr.com/pqz5za
Thank you!
Dear support,
i’m trying to use, on a category template built with the tagdiv composer on Cloud Templates, two post loops: the first one has an offset parameter set to 4, the second set to 7. Unfortunately, the second loop block, no matter which setting i apply, always inherits the first loop values displaying the same posts as the first block. It seems like there is no wp_query_reset() o wp_reset_postdatA() set.
Can you please advice? Thank You.
Hi,
If you want to remove the Latest article you need to change the page template to default -> https://forum.tagdiv.com/page-templates-2/ if you want to change the Latest Articles text please check in Homepage Latest Articles in Posts Loop Settings -> http://prntscr.com/pqz5za
Hope this will help you!
Thank you!
after investigating more, it seems most popular only work if i use only one post loop item. if i use two post loop grids, they both shows automaticly “the latest” posts.
Hi,
in version 8 i edited file loop-single-10.php for some modifications, i can’t find it in version 10.
how to have templates with some php modifications ?
for example i need to add this code to some posts
<div id=”TableProd” class=”col-sm-12 col-md-6 col-lg-6 mTable m-auto” data-ean=”<?php echo $ean;?>”></div>
Thank you !
There is posible add Autoplay function in Flex Block, Big Grid Flex, Posts Loop in Newspapaer 10.2 theme
Hello !
In order to learn more about the post loop take a look here: https://tagdiv.com/infinite-loading-for-single-posts/
I hope this was helpful !
Thank you !
Hello
i wish to add each category page most popular articles by each category but when i insert post loop it only put posts on “latest”. Nothing else will work. How to fix this please? https://prnt.sc/q59sal
Hi VidrioMag,
The footer on La Mode demo is a footer page , you’ll need to edit it from theme panel with tagDiv Composer -> https://i.imgur.com/DcwrWXq.png
Hi christogonus,
If you want to remove the Latest article you need to change the page template to default -> https://forum.tagdiv.com/page-templates-2/ if you want to change the Latest Articles text please check in Homepage Latest Articles in Posts Loop Settings -> http://prntscr.com/pqz5za
For the footer try the above suggestion if you have a footer page, if not, please check in appearance > widgets -> http://prntscr.com/q29hz0
Thank you!
Hi Colin.
Thanks for the info about the files. If we choose a cloud template for showing single page posts the template file is not found in:
wp-content\plugins\td-standard-pack\Newspaper\parts\single\
But all the others are there, thank you!
Then you can copy loop-single-9.php to your child theme and things should roll.
Anyway, we implemented a custom short-code which can be placed anywhere through the template editor in a column block.
Thank you!
Hi,
Using the post loop element the procedeure is the same, but you’ll need to set the ids in this field -> http://prntscr.com/q0ieq6 -> http://prntscr.com/q0ifr7, unfortunately there is no filter on post loop, sorry, dis can be only order or set fix posts -> http://prntscr.com/q0igoz
Thank you!
I am using the “Post Loop” Element type on my home page. It does not have a Filter tab like the blocks, just an “exclude post ID” which has the opposite affect of it’s name. It only INCLUDES whatever post ID you add.
Is there no way to filter posts using Post Loop?
Is there an option to have ads slots in loops (eg: Posts Loop component), ideally – show an ad every X item.
Hello – I am trying to EXCLUDE a post from showing on my homepage, by adding the post ID to the field “Exclude Post ID” inside the “Post Loop” Column type.
Doing this INCLUDES only the post ID added, the exact opposite effect. Am I doing this wrong? Is this feature working as intended?
Hello. When editing loop-single.php in the theme folder nothing changes. I am trying to find the file I can override in my child theme. The single post pages I am trying to change are posts like this one: https://alt-til-windows.spilnettet.dk/programmer/adobe-reader/
Thank you.
Hi
It seems the post loop in our home page is using the “most popular” post instead of latests post despite we have set right all the options in “posts loop settings”. The only option that seems to work fine in “posts loop settings > latest articles” page management is the layout, that can be modified and the changes are correctly shown in the page. But none of the other options seems to make any effect: Category filter, sort order, Limit post number…
You can have a look on “Contenidos recientes” block (down of the page) at “https://agoranews.es/”.
We have tried it with parent theme in local enviroment and works fine but not in our child theme. There’s some kind of dysfunction there.
I can give you access to pre-production enviroment so you can have a look.
Please help,
JM
Hi,
If you want to remove the Latest article you need to change the page template to default -> https://forum.tagdiv.com/page-templates-2/
If you want to change the Latest Articles text please check in Homepage Latest Articles in Posts Loop Settings -> http://prntscr.com/pqz5za
Thank you!
Please ignore #4, as I went ahead and switched out the Flex Block 1 to a Posts Loop, which doesn’t have Ajax.
How to Exclude Categories in Posts Loop box
Ok, digging into your theme structure, i’ve just found out that in: plugins\td-composer\legacy\Newspaper\loop-single.php there is no call to the related posts funcion as follows:
echo $td_mod_single->related_posts();?>
If i add those line (already available in plugins\td-composer\mobile) everything works.
Is this a bug?
Hi,
If you are using the default post style, then you need to make a change in this file -> wp-content\themes\Newsmag\loop-single.php set the show_next_prev_posts under show_author_box -> http://prntscr.com/pwu7sx -> http://prntscr.com/pwu86h
Unfortunately this can be achieve only with custom css.
Thank you!
Hi,
If you want to remove the Latest article you need to change the page template to default -> https://forum.tagdiv.com/page-templates-2/ if you want to change the Latest Articles text please check in Homepage Latest Articles in Posts Loop Settings -> http://prntscr.com/pqz5za
Thank you!