Title: WordPress loop call
Last modified: August 19, 2016

---

# WordPress loop call

 *  [eurekastudioz](https://wordpress.org/support/users/eurekastudioz/)
 * (@eurekastudioz)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/wordpress-loop-call/)
 * 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)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/wordpress-loop-call/#post-1716687)
 * 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](http://codex.wordpress.org/Custom_Fields)
 *  Thread Starter [eurekastudioz](https://wordpress.org/support/users/eurekastudioz/)
 * (@eurekastudioz)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/wordpress-loop-call/#post-1716760)
 *  so that the lightbox picks it up !!
 * I am new so if you could help me a bit.
 * Thanking in Advance
    -Mutahhar Mustafa
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/wordpress-loop-call/#post-1716761)
 * You might want to look at using shortcodes for that.
 * [Category:Shortcodes](http://codex.wordpress.org/Category:Shortcodes)
 *  Thread Starter [eurekastudioz](https://wordpress.org/support/users/eurekastudioz/)
 * (@eurekastudioz)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/wordpress-loop-call/#post-1716762)
 * 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 !!
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/wordpress-loop-call/#post-1716775)
 * 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.

 * 5 replies
 * 2 participants
 * Last reply from: [MichaelH](https://wordpress.org/support/users/michaelh/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/wordpress-loop-call/#post-1716775)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
