- If that does not resolve the problem, test without the custom previous-post-id shortcode. Replace the previous-post-id shortcode with the correct previous post ID number as a test, like this:
Thanks for fast reply. Unfortunately both ways nothing changed.
The same problem I have not only with previous-next-ids, but also with the current post in the loop.
But it looks like the problem not with id, but with custom size. If I remove 'size="custom" width="60" height="60" crop="true" ' and change it to 'size="150px" ' then img tag become visible just with not good size for me (150px).
Probably it should be regenerated sizes to my images? Or your plugin generate them by page request?
Go to Toolset > Settings > Custom Content tab, and check both checkboxes for resizing images. Then clear the caches, and test again. Let me know what you find out.
Okay thanks, please try these troubleshooting steps first:
- Temporarily deactivate all plugins except Types, Views, and Layouts
- Temporarily activate a default theme like Twenty Seventeen
- Test again. If the problem is resolved, reactivate your theme and plugins one by one until the problem returns.
- If the problem was not resolved, please activate server logs to see if any errors are generated on the server. If you are not familiar with server logs, I can show you how to activate them temporarily. Go in your wp-config.php file and look for define(‘WP_DEBUG’, false);. Change it to:
define('WP_DEBUG', true);
Then add these lines, just before it says 'stop editing here':
Then test the custom size shortcode again. If any errors are generated, this will create an error_log.txt file in your site's root directory. Please send me its contents. Once that is done, you can revert the changes you made to wp-config.php.