Wordpress- Echo PHP into Shortcode -


I have participated in a little problem with the shortcode, I want them to take the variable and for that lesson Give place which should usually go there, but instead of working only it can not be loaded, even though I have tested it with echo to check whether it is putting anything out and this is it.

  & lt ;? Php $ artistslug = the_field ('artist_cat_slug'); Echo $ artists; // Here echo do-shortcode for test reasons ('[Productcate category =' '. $ Artists list' '']];); ? & Gt;  

Any help would be greatly appreciated.

Most probably, the_field () Shows Prices may correspond to the value Back instead of the plugin you are using, for example get_the_field () . Use instead

Edit later

( emphasis mine) to:

specified field The values ​​of displays (this is the same as echo get_field ($ field_name) )

. Use instead


Comments