• Im not an expert with php but i dont get this:S

    Whe i do this<?php the_author_ID() ?> i get the value 10

    When i type this

    <?php
    $value = get_cimyFieldValue(10, 'BEDRIJFSNAAM');
    echo cimy_uef_sanitize_content($value);
    ?>

    I get what i want the value of bedrijfsnaam

    <?php
    $value = get_cimyFieldValue(<strong>the_author_ID()</strong>, 'BEDRIJFSNAAM');
    echo cimy_uef_sanitize_content($value);
    ?>

    it gives me the me the value 10 and not the value of bedrijfsnaam:S

    i dont get how this happen:S

Viewing 1 replies (of 1 total)
  • Take out the strong tags. They are interfering with the function call.

    Edit: Spoke too soon. the_author_ID() echoes the author ID, it does not return it for use in the function. Try using this instead:

    <?php
    $value = get_cimyFieldValue(get_the_author_meta('ID'), 'BEDRIJFSNAAM');
    echo cimy_uef_sanitize_content($value);
    ?>
Viewing 1 replies (of 1 total)
  • The topic ‘CIMY user extra Field’ is closed to new replies.