Support ForumI need my posts displays randomly on tha main page – Support Forum https://support.ishyoboy.com/forums/topic/i-need-my-posts-displays-randomly-on-tha-main-page/feed/ Wed, 25 Nov 2026 07:39:40 +0200 http://bbpress.org/?v=2.5.12-6148 en-US https://support.ishyoboy.com/forums/topic/i-need-my-posts-displays-randomly-on-tha-main-page/#post-11162 <![CDATA[I need my posts displays randomly on tha main page]]> https://support.ishyoboy.com/forums/topic/i-need-my-posts-displays-randomly-on-tha-main-page/#post-11162 Tue, 12 Jan 2016 18:17:27 +0000 neformatkg Now I have a main page i want on neformat.kg

a choosed category “main-page@

now post are displaye on top which are newest. I need to make this 9 post to be displayed everytime randomly on main page. Please, help

]]>
https://support.ishyoboy.com/forums/topic/i-need-my-posts-displays-randomly-on-tha-main-page/#post-11171 <![CDATA[Reply To: I need my posts displays randomly on tha main page]]> https://support.ishyoboy.com/forums/topic/i-need-my-posts-displays-randomly-on-tha-main-page/#post-11171 Wed, 13 Jan 2016 08:09:03 +0000 IshYoBoy Hi neformatkg,

you added this line into front-page.php file:
if ( is_front_page() ) { query_posts('category_name=featured'); }

For displaying posts randomly, replace it with this line:
if ( is_front_page() ) { query_posts('orderby=rand&category_name=featured'); }

Don’t forget replace category name “featured” with your category name.

Cheers

—
If you are happy with our theme and support please rate us in your Downloads Section on ThemeForest. A 5 star rating is always a great motivation for us!

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/i-need-my-posts-displays-randomly-on-tha-main-page/#post-11206 <![CDATA[Reply To: I need my posts displays randomly on tha main page]]> https://support.ishyoboy.com/forums/topic/i-need-my-posts-displays-randomly-on-tha-main-page/#post-11206 Thu, 14 Jan 2016 18:49:57 +0000 neformatkg Great, Thank you!

]]>
https://support.ishyoboy.com/forums/topic/i-need-my-posts-displays-randomly-on-tha-main-page/#post-11212 <![CDATA[Reply To: I need my posts displays randomly on tha main page]]> https://support.ishyoboy.com/forums/topic/i-need-my-posts-displays-randomly-on-tha-main-page/#post-11212 Fri, 15 Jan 2016 07:23:36 +0000 IshYoBoy Sure thing, we’re glad we could help ;)

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>