Title: Retrieve plugin settings within template code ?
Last modified: January 7, 2017

---

# Retrieve plugin settings within template code ?

 *  [pol](https://wordpress.org/support/users/pscolv/)
 * (@pscolv)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/retrieve-plugin-settings-within-template-code/)
 * Hi,
 * I setup my own php template, in form of a grid of thumbnails, and I’d like to
   automatically set the css class within depending on the ‘limit’ setting that 
   was chosen within the plugin.
 * Example : if I set the number of outputted posts to 5, I’d like that the css 
   class of my items be : “one-fifth”, and so on…
 * Is there a way of retrieving those settings within the template ?
 * Thanks,
 * Pascal.

The topic ‘Retrieve plugin settings within template code ?’ is closed to new replies.

 * ![](https://ps.w.org/yet-another-related-posts-plugin/assets/icon-256x256.png?
   rev=2549977)
 * [YARPP - Yet Another Related Posts Plugin](https://wordpress.org/plugins/yet-another-related-posts-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yet-another-related-posts-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [pol](https://wordpress.org/support/users/pscolv/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/retrieve-plugin-settings-within-template-code/)
 * Status: not resolved