Title: How to input shortcode with http:// to php file
Last modified: August 30, 2016

---

# How to input shortcode with http:// to php file

 *  Resolved [morthius](https://wordpress.org/support/users/morthius/)
 * (@morthius)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/how-to-input-shortcode-with-http-to-php-file/)
 * Hi everyone,
 * I want to input a WP shortcode in php file (for example page.php). I know that
   I can do it using the:
 * <?php echo do_shortcode(“[shortcode]”); ?>
 * The problem is my shortcode looks like this:
 * [feedzy-rss feeds=”[http://samplelink.com/&#8221](http://samplelink.com/&#8221);
   max=”1″ feed_title=”yes” target=”_blank” title=”100″ meta=”yes” summary=”yes”
   summarylength=”200″ thumb=”yes” size=”200″ ]
 * As a matter of fact I have a error with T_String (probably becouse of double “//”).
   Anyone could help?

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

 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/how-to-input-shortcode-with-http-to-php-file/#post-6888287)
 * Shortcodes may use single or double quotes for attribute values.
    [https://codex.wordpress.org/Shortcode_API#Other_features_in_brief](https://codex.wordpress.org/Shortcode_API#Other_features_in_brief)
 * Try it with this
 *     ```
       echo do_shortcode("[feedzy-rss feeds='http://samplelink.com/' max='1' feed_title='yes' target='_blank' title='100' meta='yes' summary='yes' summarylength='200' thumb='yes' size='200']");
       ```
   
 * You get the error because you can’t use (unescaped) double quotes in a double
   quoted string.
 * See:
    [http://www.php5-tutorial.com/data-types/working-with-strings/](http://www.php5-tutorial.com/data-types/working-with-strings/)
   [http://www.trans4mind.com/personal_development/phpTutorial/quotes.htm](http://www.trans4mind.com/personal_development/phpTutorial/quotes.htm)
 *  Thread Starter [morthius](https://wordpress.org/support/users/morthius/)
 * (@morthius)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/how-to-input-shortcode-with-http-to-php-file/#post-6888337)
 * keesiemeijer – thank you very much for your reply. The problem is solved, it 
   work’s perfectly.

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

The topic ‘How to input shortcode with http:// to php file’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [shotcode](https://wordpress.org/support/topic-tag/shotcode/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [morthius](https://wordpress.org/support/users/morthius/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/how-to-input-shortcode-with-http-to-php-file/#post-6888337)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
