Support » Plugin: Pods - Custom Content Types and Fields » Show content random

  • Resolved Haandler


    Hello !
    I use for plugin for create a new type of page on my website (like compagny).
    I have two questions:
    – I can see one compagny, but where can i see all the compagny ?
    – I want to display all the compagny on a page with à random order, how can i do ?

    Thanks you !
    Have a nice day

Viewing 1 replies (of 1 total)
  • Plugin Author Jim True


    If you’re trying to display all ‘compagny’ post type on one page, you can use a shortcode like:

    [pods name="compagny" limit="-1"]{@post_title}[/pods]

    If you want those in random order:

    [pods name="compagny" limit="-1" orderby="RAND()"]{@post_title}[/pods]

    Be aware that not all Hosting providers allow you to use RAND() (it’s a SQL command); WPEngine you have to have it turned on and use it sparingly.

Viewing 1 replies (of 1 total)
  • The topic ‘Show content random’ is closed to new replies.