Title: allocater's Replies | WordPress.org

---

# allocater

  [  ](https://wordpress.org/support/users/allocater/)

 *   [Profile](https://wordpress.org/support/users/allocater/)
 *   [Topics Started](https://wordpress.org/support/users/allocater/topics/)
 *   [Replies Created](https://wordpress.org/support/users/allocater/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/allocater/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/allocater/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/allocater/engagements/)
 *   [Favorites](https://wordpress.org/support/users/allocater/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Easiest way to put a php snippet on your page?](https://wordpress.org/support/topic/easiest-way-to-put-a-php-snippet-on-your-page/)
 *  Thread Starter [allocater](https://wordpress.org/support/users/allocater/)
 * (@allocater)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/easiest-way-to-put-a-php-snippet-on-your-page/#post-17158599)
 * You are right. I switched to coding php inside of the Code Snippets plugin.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Easiest way to put a php snippet on your page?](https://wordpress.org/support/topic/easiest-way-to-put-a-php-snippet-on-your-page/)
 *  Thread Starter [allocater](https://wordpress.org/support/users/allocater/)
 * (@allocater)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/easiest-way-to-put-a-php-snippet-on-your-page/#post-17107509)
 * Very nice! shortcode was the keyword I needed. It allowed me do find the file
   wp_includes/shortcodes.php and I added at the end:
 *     ```wp-block-code
       add_shortcode('solarweb', function() {	
       $json = file_get_contents("https://api.solarweb.com/swqapi/info/release");	
       $result = json_decode($json);	
       $version = $result->releaseVersion;	
       $date = $result->releaseDate;	
       return "<div>$version</div><div>$date</div>";});
       ```
   
 * Probably not the correct way to add new shortcodes, but for now this will do.
   Thanks.
    -  This reply was modified 2 years, 8 months ago by [allocater](https://wordpress.org/support/users/allocater/).

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