WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Custom Field to Link Title to External URL (6 posts)

  1. shep
    Member
    Posted 4 years ago #

    I'm using the custom post hack to link the title of a post to an external link. The hack is #5 here: http://www.smashingmagazine.com/2009/05/13/10-custom-fields-hacks-for-wordpress/

    I have changed my index.php and added the function to my functions.php

    I'm running into an issue when trying to add the custom field, i get this error: Warning: Cannot modify header information - headers already sent by (output started at /home/shep/public_html/pieceofshep.com/wp-content/themes/elegant-box/functions.php:580) in /home/shep/public_html/pieceofshep.com/wp-includes/classes.php on line 1601

    Any help would be appreciated!

  2. Spencer Finnell
    Member
    Posted 4 years ago #

    Can you put your functions.php file in an paste bin and let me see it?

  3. shep
    Member
    Posted 4 years ago #

    here's my functions.php file

  4. shep
    Member
    Posted 4 years ago #

    However, I think I decided to use the page links to plugin because it will even redirect shortened URLs posted on other sites (like twitter) to the url your title links to. cutting out the middle man.

  5. Spencer Finnell
    Member
    Posted 4 years ago #

    So you have it all worked out then?

  6. shep
    Member
    Posted 4 years ago #

    Yep, because I'm not using that function anymore I don't receive that error.

Topic Closed

This topic has been closed to new replies.

About this Topic