WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. newyorkcity
    Member
    Posted 1 year 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?

    http://pastebin.com/4gJpjB5e

  2. Andrew
    Forum Moderator
    Posted 1 year 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
    Member
    Posted 1 year 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