Nishant Patil
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Custom Fields (ACF?)] Taxonomy ( Term ) validation problemSorry my problem is different, please ignore my reply.
Forum: Plugins
In reply to: [Advanced Custom Fields (ACF?)] Bug in Relationship field for Custom TaxonomyI got the solution. It’s very simple.
$logo = get_field('field_53368dabb411e', 'manufacturer_'.$m->term_id);
As documentation says that we can pass
POST ID
as second argument, This can also be options / taxonomies / users / etc.Now I have to work with custom taxonomy. So if I pass taxonomy term id as second parameter, it doesn’t work. It search value in
wp_postmeta
table, which is wrong. Because ACF didn’t store taxonomy/relationship field data inwp_postmeta
table. It stores inwp_options
table.So now problem is how to pass argument that ACF get actual value. I search all code related to relationship field and how ACF insert & get data from DB. I just concat
the taxonomy slug
+ ‘_’ +taxonomy term id
and I got my result.I don’t know whether this is bug is plugin or they forgot to update or mention in documentation, but I got my desired result with this hack.
Forum: Plugins
In reply to: [Advanced Custom Fields (ACF?)] Taxonomy ( Term ) validation problemSame problem with me for custom taxonomy. In my case I can’t get attached post at front end side. It stores into DB but didn’t show.
Forum: Plugins
In reply to: [Advanced Custom Fields (ACF?)] Bug in Relationship field for Custom TaxonomyI forgot to say that, I got displayed selected attachment in admin side. The error only occurs when I select
Elements
setting in Custom Field setting.Hello,
I got the solution.
It’s just select theDisplay results from all post types
option and I got the related posts. ??It build cache when I install YARPP Experiments otherwise it don’t. But it don’t show Related Post on site. Currently I’m developing site so I tested all this on localhost
I added
'yarpp_support' => true
to all custom post type while registering the custom post type. I did all necessary steps.
I’m developing the theme. I use lots of suggestions but nothing is useful.