[HELP] Covert Pinpress WP - Random?

3 replies
  • WEB DESIGN
  • |
Good evening,
I have the WP covert pinpres theme for some time and try all the time to get it down so that it shows me the items by random.

Can someone help me?
I've been looking on google but found nothing :-(

Thanks for help,
greetings from germany
#covert #pinpress #random
  • Profile picture of the author Marketer Matt
    You'll have to find the query that generates the page and use 'orderby' => 'rand' or something similar. You can see the documentation here:
    Class Reference/WP Query « WordPress Codex
    {{ DiscussionBoard.errors[8896860].message }}
    • Profile picture of the author Der87er
      Thanks for your reply.
      I searched in all my database entrys but i dont find it.
      Can you say me who?
      {{ DiscussionBoard.errors[8897996].message }}
      • Profile picture of the author Marketer Matt
        If the code doesn't exist in your theme, then your theme is probably using the default WP display which doesn't order by random. So to change it, you'll have to add something like this to your theme.

        Code:
         = new WP_Query( array ( 'orderby' => 'rand', 'posts_per_page' => '10' ) );
        Not being familiar with your exact theme, I couldn't tell you exactly what template page to put it on. If your theme has a blog page template (usually template-blog.php or something similar) you could edit that template and then set the page template when creating a new page. However, if your theme just uses index.php or some other page, you'll have to figure out when the query is being generated and edit it there.

        It'd probably be best to create a child theme so these changes don't get overridden when you update.
        {{ DiscussionBoard.errors[8903838].message }}

Trending Topics