ACF in post

Posted in: Newspaper
Post count: 23

Hi, i try to put php code after content for ACF, i have spent several hours but have no results.

i tryout to put the code in single.php and try in loop-single.php without results

Where can i put the code? also to mension that my single post page have the single template

Please help is needed urgent

Thanks

Post count: 35449

Hi,

In order to add some custom php code in post in Newspaper v9.7 , you need to edit the loop-single-n, n is for the number of the template that you are using, for example if you are using post template 1 you need to go in plugins/td-composer/legacy/Newspaper/parts/single/loop-single-1.php
-> https://www.screencast.com/t/eCPWKrIl2

This settings will apply on responsive version too, but if you use mobile theme you’ll need to make this changes in plugins/td-composer/mobile/single.php too.

Hope this will help you!
Thanks.

Post count: 23

THANK YOU !!!!

I have search everywhere! but dit not have the idea to search in the Plugin td-Composer…..

AGAIN THANK YOU!

Post count: 23

Forgotten to ask, how can i prevent by an update that the file would overwritten can i put it in my child theme?

Post count: 23

Sorry to ask again, i changed the template in plugins/td-composer/legacy/Newspaper/loop-single.php

Second: i try to put it in my child theme and make an order td-composer/legacy/Newspaper/ and put her the changed file but it does not work

how can i become the changed file working, do i have to put something in my functions.php?

Post count: 35449

Hi,

Since Newspaper v9.7 the child theme is working only for the functions.php and style.css files.
We wrote an article on the subject here: https://tagdiv.com/updating-the-core-of-tagdiv-themes/
if you want you can try the implementation for the child theme provide by an user in this topic -> https://forum.tagdiv.com/topic/issue-with-9-7-update-changes-single_template_-in-child-theme/

Thank you for your understanding!

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