Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter williamxd3

    (@williamxd3)

    ok, found a solution, dont know if its the best solution, problaly not, as i said i dont know much php

    display the image html formated (<p><img src=”…)
    xprofile_get_field_data('name of the field', get_the_author_meta('ID'))

    display image url only

    function function_name(){
    $replace = array("<p>", "<img src=\"", "\" alt=\"\" />", "</p>");
    $cover = xprofile_get_field_data('IMAGE FIELD NAME', get_the_author_meta('ID'));
    return str_replace($replace, "", $cover);
    }

    by the way, great plugin, thanks 🙂

    Plugin Author Miguel López

    (@atallos)

    I will do the same if I were in your situation, so I believe this is a good solution.

    Hello! i have a question… in what file i can put the code for display the image ¿?

    Thnx.

    Plugin Author Miguel López

    (@atallos)

    You can use “xprofile_get_field_data” where you need it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to display the image uploaded from the field anywhere in the site?’ is closed to new replies.