Forcing Function to Return instead of Echo? (3 posts)

  1. newyorkcity
    Posted 2 years ago #

    my getCustomField('Affiliate Link') function is echoing so the value is placed at the very top of my RSS Post.. how do I get it to return instead?


  2. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    Duplicate the function getCustomField() (in functions.php file), call it something else but related and manipulate the the returned value to a variable rather than an echo.

  3. newyorkcity
    Posted 2 years ago #

    im not sure how to do that since I don't understand php too well.. I would have to do all that to force the function return instead of echo?

Topic Closed

This topic has been closed to new replies.

About this Topic