Title: PHP into the widget
Last modified: August 21, 2016

---

# PHP into the widget

 *  [panwooders](https://wordpress.org/support/users/panwooders/)
 * (@panwooders)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/php-into-the-widget/)
 * Hello! Your plugin is great.
    I need to put social-buttons between [title] and[
   image] inside the mini-loop.
 * As i use a plugin for the social buttons (Hupso social), it gives me 2 chances:
   –
   use a shortcode: [hupso] – insert php string inside a template: <?php echo do_shortcode(‘[
   hupso]’ ); ?>
 * Your widget seems to strip the code removing the php string.
    How can i add this
   simple string to the widget?
 * Thank you in advance!
 * [http://wordpress.org/plugins/mini-loops/](http://wordpress.org/plugins/mini-loops/)

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

 *  [bellieni](https://wordpress.org/support/users/bellieni/)
 * (@bellieni)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/php-into-the-widget/#post-3987044)
 * Also here – i have a problem with a code for a widget!
 * li>**[[title]](https://wordpress.org/support/topic/php-into-the-widget/[url]?output_format=md)**
   
   <div class=”timeout_date”>Published on [miniloop custom_fields=”date_to_use”]
   get_miniloops( array(‘custom_fields’ => ‘date_to_use’ ) );</div>
 * I have a custom post type and i need to print the custom fields date_to_use after
   the title but this code not work!
    Do you have an idea?
 * The plugin is great but very difficult to use and the documentation very very
   light.
 *  [Kyle Maurer](https://wordpress.org/support/users/brashrebel/)
 * (@brashrebel)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/php-into-the-widget/#post-3987064)
 * Hey [@bellieni](https://wordpress.org/support/users/bellieni/).
 * For starters, yes, Kailey has created a wonderful plugin here. I do think though
   that compared to many other plugins available, the documentation is pretty solid.
 * Anyway, if you are including the above HTML in the “Item format” field in the
   Miniloops widget or in the ml_format custom field on a post or page than you 
   should only need some simple changes. I would try the following:
 *     ```
       <li>[title]
       <div class="timeout_date">Published on [field name=date_to_use]</div>
       </li>
       ```
   
 * I hope that helps.

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

The topic ‘PHP into the widget’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mini-loops_f7f7f7.svg)
 * [Mini Loops](https://wordpress.org/plugins/mini-loops/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mini-loops/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mini-loops/)
 * [Active Topics](https://wordpress.org/support/plugin/mini-loops/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mini-loops/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mini-loops/reviews/)

## Tags

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

 * 2 replies
 * 3 participants
 * Last reply from: [Kyle Maurer](https://wordpress.org/support/users/brashrebel/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/php-into-the-widget/#post-3987064)
 * Status: not resolved