Timeline for wp_query get data from advanced custom field in wordpress
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 10, 2018 at 9:18 | comment | added | Tejas Gajjar | let me know this works or not | |
Dec 10, 2018 at 9:17 | comment | added | Tejas Gajjar | $title = get_the_title();$args = array( 'post_type' =>'product_name', 'meta_query' =>array( array( 'key' => 'brand_name ', 'value' => $title, ), ), ); | |
Dec 10, 2018 at 9:14 | comment | added | user155636 |
my post_type is product_name and custom field name is : brand_name
|
|
Dec 10, 2018 at 9:11 | comment | added | Tejas Gajjar | yes sure please provide your type | |
Dec 10, 2018 at 9:09 | comment | added | user155636 | can you use my types name and fields name to this query? | |
Dec 10, 2018 at 9:06 | history | answered | Tejas Gajjar | CC BY-SA 4.0 |