• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2893

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

Display Random Posts On All Category Archive Pages

The PHP code in this post changes the order of posts which are displayed on all category archive pages.

Here’s the question i’m answering from the forums.

How do i make a category page display the posts assigned to that category random?

This is the page that I am referring to. I would like all of the posts to show in a random order. I also need to do this for each category with out them crossing over into one another. (the Food category should only randomize with the Food posts in that category.)

Is this possible?

Please copy ALL the code from the view raw link and paste it at the end of your child themes functions.php file using a text editor like Notepad++

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis & WooCommerce.

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Contact
  • Terms
  • Genesis WP Tags
  • WooCommerce