Title: Insert random post from categories
Last modified: June 28, 2021

---

# Insert random post from categories

 *  Resolved [andreadev237](https://wordpress.org/support/users/andreadev237/)
 * (@andreadev237)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/insert-custom-post-from-categories/)
 * Hi!
 * First of all, thanks for this amazing plugin is really usefull and save me a 
   tons of work
 * In a website i’m creating right now i need to add in one page some post from 
   specific categories,
 * I look for something like this
 * [insert page categories=”XCategory, YCategory” display=’content’]
 * Is this possible in some way?
 * Thanks in advance for the support!
    -  This topic was modified 4 years, 11 months ago by [andreadev237](https://wordpress.org/support/users/andreadev237/).
    -  This topic was modified 4 years, 11 months ago by [andreadev237](https://wordpress.org/support/users/andreadev237/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * (@figureone)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/insert-custom-post-from-categories/#post-14604663)
 * Thanks! Currently Insert Pages doesn’t do any filtering based on taxonomies but
   you should be able to use `WP_Query` to quickly get what you want in a page template.
   
   [https://wordpress.org/support/topic/cannot-insert-product-category-page/](https://wordpress.org/support/topic/cannot-insert-product-category-page/)
   [https://wordpress.org/support/topic/insert-latest-post-from-a-category/](https://wordpress.org/support/topic/insert-latest-post-from-a-category/)
 * Also here’s a stackoverflow snippet that might get you something similar:
    [https://wordpress.stackexchange.com/questions/20303/function-to-show-random-posts-from-a-category](https://wordpress.stackexchange.com/questions/20303/function-to-show-random-posts-from-a-category)

Viewing 1 replies (of 1 total)

The topic ‘Insert random post from categories’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/insert-pages.svg)
 * [Insert Pages](https://wordpress.org/plugins/insert-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-pages/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/insert-custom-post-from-categories/#post-14604663)
 * Status: resolved