• I want to know if there is a way that users put a certain url in the post and then that url gets stored in a variable. And in the execution of the Loop the url gets called and used !

Viewing 5 replies - 1 through 5 (of 5 total)
  • Could use custom fields for that.

    In your loop you could use something like:

    $link = get_post_meta($post->ID, 'link_url', true);
    $text = get_post_meta($post->ID, 'link_text', true);
    if ($link){
    echo 'Credit: <a href="'.$link .'">'.$text.'</a>';
    }

    See: Custom Fields

    Thread Starter eurekastudioz

    (@eurekastudioz)

    Basically, i have a page which shows excerpt and a video in a lightbox if a post has one. What i wanna do is that the user if puts a video url inside certain tags such as <vd></vd> the url gets saved and in the Loop the url gets pasted in the so that the lightbox picks it up !!

    I am new so if you could help me a bit.

    Thanking in Advance
    -Mutahhar Mustafa

    You might want to look at using shortcodes for that.

    Category:Shortcodes

    Thread Starter eurekastudioz

    (@eurekastudioz)

    Sorry for this, but i have done some research, i want if someone can explain the process a bit. I did see the short codes but couldn’t figure it out !!

    Don’t know if I can offer much more than those Codex articles.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘WordPress loop call’ is closed to new replies.