redux framework wordpress calling variable

只愿长相守 提交于 2019-12-04 16:16:33

Have you tried this? <?php global $redux_demo; echo $redux_demo['media']['url'];?>

maheshwaghmare

Redux Framework create an array of MEDIA

You can access MEDIA info i.e.

  1. Define global $redux_demo;

  2. To access

    1. ID : echo $redux_demo['media']['id'];
    2. TYPE : echo $redux_demo['media']['type'];
    3. URL : echo $redux_demo['media']['url'];

etc.

For more details refer https://github.com/ReduxFramework/ReduxFramework/wiki/Fields

You can also shorthand it: $GLOBALS['redux_demo']

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!