Hi @tvnweb
I don’t see how the WordPress update would cause my plugin not to work for you but I will do my best to resolve the issue with you.
If the repeater template was working before the update, did you also have a theme update? If so, it is possible the theme has made a change to the location of it’s templates so you may need to filter the template location so the repeater template can read them.
You can do this by adding a filter like so to your functions.php file. All that you have to do is set the location to where the theme’s templates are.
function my_template_location() {
return 'template-parts/post/';
}
add_filter( 'alnp_template_location', 'my_template_location' );
Let me know how it goes and if you still need assistance.
Thread Starter
tvnweb
(@tvnweb)
The theme is based on foundationpress ( http://foundationpress.olefredrik.com ) version 2.10.4, with post content in this path: template-parts/content.php
I have created a directory MYTHEME/auto-load-next-post with the file content-alnp.php in it, with following code added:
function my_template_location() {
return ‘template-parts/’;
}
add_filter( ‘alnp_template_location’, ‘my_template_location’ );
Still doesn’t work (even withuot the my_template_location function).
Thank you for your support
@tvnweb I said to add the template location filter to your functions.php file, NOT in the repeater template. Please try again and get back to me. Thank you.
Thread Starter
tvnweb
(@tvnweb)
Thank you Sébastien, now it works perfectly!
-
This reply was modified 7 years, 4 months ago by
tvnweb.