get custom fields from custom post type in a while inside a page
-
Hi,
First of all, pretty nice plugin.
I have been able to get custom fields in a single post type. But when I try to get the same custom field from inside a page it gives an error ”
[apr field=’web_logo’] attempting to be used on a page where there is no collection.
“. I have this shortcode inside a custom fields, so then in the php code I do a do_shortcode().I have seen that the problem is that the $post doesn’t have the AirpressCollection when I get it from inside a page(or probably another post type). I understand that I created a Virtual Field for a specific custom post type, but I thought that collection would load any time I call this post type.
There is a way to get a virtual field from one post type called inside another post type?
- The topic ‘get custom fields from custom post type in a while inside a page’ is closed to new replies.