WordPress.org

Ready to get started?Download WordPress

Forums

How to finish a url with a custom field? (3 posts)

  1. Mraztek
    Member
    Posted 3 years ago #

    how guys can someone help me out, im trying to add a url iframe on my blog but i wanna to be mmm example.

    <iframe src="http://wordpress.com/sample.php= CUSTOM FIELD" frameborder="0"></iframe>

    i try

    `<iframe src="http://worpress.com/sample.php=<?php echo get_post_custom($post->ID, url, true); ?>" width="607" height="360" frameborder="0"></iframe>

    but wont work.

  2. keesiemeijer
    moderator
    Posted 3 years ago #

    try it with get_post_meta()

    <iframe src="http://worpress.com/sample.php=<?php echo get_post_meta($post->ID, url, true); ?>" width="607" height="360" frameborder="0"></iframe>
  3. Mraztek
    Member
    Posted 3 years ago #

    :) thank you keesiemeijer it worked :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.