Problem to get attachments of custom type post
-
Hi,
I have custom post type (made by Simple Custom Post Types plugin) and I enabled attachemnts for it in function.php. It works well. But when I want to get attachemnts in template code:
$attachments = new Attachments(‘attachments’, custom_type_post_id);
it doesn’t work. When I try it on regular post:
$attachments = new Attachments(‘attachments’, regular_post_id);
it works and $attachments->exist() return 1.
Any help, pls? Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Problem to get attachments of custom type post’ is closed to new replies.