Title: Custom widget.php file
Last modified: May 16, 2024

---

# Custom widget.php file

 *  Resolved [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * (@mte90)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/custom-widget-php-file/)
 * As per title, in this way I can change the order of the content in my theme itself.
   
   As example I need that the title, author and the date are in the same container,
   so I can divide the content in 2 columns.

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

 *  Plugin Author [Kybernetik Services](https://wordpress.org/support/users/kybernetikservices/)
 * (@kybernetikservices)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/custom-widget-php-file/#post-17760352)
 * Thank you for reaching out.
 * I guess you want to request an option to change the html structure of the output
   of Recent Posts Widget With Thumbnails, right? You can manipulate the layout 
   through custom CSS. I’m sorry to inform you that I don’t include a template system
   to Recent Posts Widget With Thumbnails.
 * Recent Posts Widget With Thumbnails is open source and you are invited to add
   this feature yourself and I would be happy if you submit a pull request to make
   the feature available to the entire community.
 * Thank you for your understanding.
 *  Thread Starter [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * (@mte90)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/custom-widget-php-file/#post-17760557)
 * With CSS something is achievable but the date/author is in another container 
   so put the title with the date/author just below that, with the image on the 
   left and this text on the right is not easy to achieve.
 * I was thinking more like [https://developer.wordpress.org/reference/functions/locate_template/](https://developer.wordpress.org/reference/functions/locate_template/)
   in the plugin code that check if inside the theme there is a file to load it 
   instead of the new provided with the plugin.
 *  Plugin Author [Kybernetik Services](https://wordpress.org/support/users/kybernetikservices/)
 * (@kybernetikservices)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/custom-widget-php-file/#post-17760968)
 * I understand your request but this would result in a complete rewrite of the 
   output engine of Recent Posts Widget With Thumbnails. That’s why I don’t want
   to implement this. Not even since this is the first request. And the risk that
   all other users will be negatively affected by it does not outweigh the benefit
   for the community. The majority of users would never use such a feature. But 
   as I wrote, you are invited to add the feature yourself.
 *  Thread Starter [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * (@mte90)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/custom-widget-php-file/#post-17762516)
 * There is a GitHub repository or do you prefer a patch shared here?
 * It is just a one-line patch 🙂
 *  Plugin Author [Kybernetik Services](https://wordpress.org/support/users/kybernetikservices/)
 * (@kybernetikservices)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/custom-widget-php-file/#post-17763198)
 * Unfortunately it is not just a one-line patch.
 * According to the WordPress developer guidelines, a template should be structured
   in such a way that the file does not contain any programming logic which are 
   only integrated by function calls. The layout elements should be largely separated
   from the program logic. This is currently not the case with Ultimate Post List.
   Thats why I wrote, the template file `widget.php` needs reprogramming.
 * Once you’re happy with your one-line patch, use it in your installation. But 
   I won’t merge it in the Ultimate Post List version for the public.
 *  Thread Starter [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * (@mte90)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/custom-widget-php-file/#post-17763221)
 * With [https://developer.wordpress.org/reference/functions/locate_template/](https://developer.wordpress.org/reference/functions/locate_template/)
   you can share a parameter with the various variables.
    I will try to do a patch
   to show to you how it is simple without altering nothing.

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

The topic ‘Custom widget.php file’ is closed to new replies.

 * ![](https://ps.w.org/recent-posts-widget-with-thumbnails/assets/icon-256x256.
   png?rev=2478511)
 * [Recent Posts Widget With Thumbnails](https://wordpress.org/plugins/recent-posts-widget-with-thumbnails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/recent-posts-widget-with-thumbnails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/recent-posts-widget-with-thumbnails/)
 * [Active Topics](https://wordpress.org/support/plugin/recent-posts-widget-with-thumbnails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/recent-posts-widget-with-thumbnails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/recent-posts-widget-with-thumbnails/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/custom-widget-php-file/#post-17763221)
 * Status: resolved