Custom field value link title
You would probably make life much easier for yourself if you stored Post IDs as your custom meta value, rather than post URLs; that said, you can try back-tracing the Post ID using url_to_postid(), then get the post object from the ID, then get the post title: // Your original code here $custom_fields = get_post_custom($post_id); … Read more