1. If I want to unable Related Articles for more than one post_id may I repeat code for each one or have I to use "or" clause?
2. Excuse me, but I'd like to understand better one thing. If I update the template, I think I'll lose changes. Infact, I'm using theme child to avoid it. Now, in theme child folder there are: functions.php, style.css and screenshot.png. Have I to copy there related_posts.php and add custom code there?
How is possible to disable Related Articles only for certain posts?
In post settings, down by article editor I can see only
"Disable Auto Load Previous Post" and other settings about siderbar...
Hi,
Unfortunately, curently this theme doesn't support disable Related Articles only for certain posts.
Best Regards,
PenciDesign
Is it possibile to work on php code?
Hi,
Related Articles code on pennews/template-parts/related_posts.php file as screenshot http://prntscr.com/mmgsmq
then add custom code as screenshot http://prntscr.com/mmgt4e
Please check this guide to know find the post ID
Best Regards,
PenciDesign
1. If I want to unable Related Articles for more than one post_id may I repeat code for each one or have I to use "or" clause?
2. Excuse me, but I'd like to understand better one thing. If I update the template, I think I'll lose changes. Infact, I'm using theme child to avoid it. Now, in theme child folder there are: functions.php, style.css and screenshot.png. Have I to copy there related_posts.php and add custom code there?
Hi,
1/ You can use replace custom code :
to
2/ Don't worry about this issue.
If you custom code on child theme of PenNews , It not lose when you update theme.
If you custom code on theme, please copy custom code to child theme.
Best Regards,
PenciDesign
Maybe, I didn't understand use of theme child.
In theme child folder I have only this files: functions.php, style.css and screenshot.png
Which are steps I have to do?
Hi,
Please check this guide:
https://developer.wordpress.org/themes/advanced-topics/child-themes/#adding-template-files
https://www.wpbeginner.com/beginners-guide/how-to-install-a-wordpress-child-theme/
and check video attachement
Best Regards,
PenciDesign