Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Hi there – I can’t think of an easy way to randomize the order of projects on an automatically generated project type page, since the order is set within the Jetapack plugin, and not the theme.

    One option is to try using the portfolio shortcode instead on a static page. Something like:

    [portfolio display_types=true include_type=signage columns=3 orderby=rand]

    Let me know how it goes.

    Thread Starter davidelambert

    (@davidelambert)

    Hi Kathryn – Thanks for the reply.

    Unfortunately, using the shortcode doesn’t include the Masonry-like grid or the styling of portfolio page template, which I’d like to maintain.

    I’m not a PHP whiz, so I’m just spitballing here, but could I maybe create a copy the portfolio page template to a new template and query only the select project type? I’ve already got the main portfolio page to do random order by adding ‘orderby -> ‘rand’ to the page template arguments.

    (Sorry if that’s off base – I really am a PHP super noob.)

    Moderator Kathryn Presner

    (@zoonini)

    could I maybe create a copy the portfolio page template to a new template and query only the select project type?

    You could certainly give that a try.

    I’ve already got the main portfolio page to do random order by adding ‘orderby -> ‘rand’ to the page template arguments.

    Do you mean that you edited the theme files directly? If so, before you go too much further, I’d strongly suggest you set up a child theme, otherwise you’ll lose all your changes the next time you update Illustratr.

    Making a child theme means your changes won’t be overwritten when you update the theme. If you’re new to child themes, you can explore these guides:

    http://codex.ww.wp.xz.cn/Child_Themes
    https://www.smashingmagazine.com/2016/01/create-customize-wordpress-child-theme/

    Keeping your theme up-to-date is strongly recommended to ensure you get bug fixes, security updates, and updates to keep the theme compatible with WordPress core.

    Hi @zoonini I have a similar question and thought you might be able to help me.

    I am also using the jetpack plugin for the portfolio feature. I have created Project Types for my portfolio but the types are not displaying in the order that I want. Right now they are displaying randomly.

    Right now they display as:
    Music Documentary NotFunny Commercial Event Funny Featured Tv&Film Spokesperson PassionProjects Paco Nick Latest

    I’d like them to display as:
    Latest Featured Funny NotFunny Tv&Film Documentary Commercial Event Spokesperson Nick Paco PassionProjects

    Any help at all would be much appreciated. Thanks very much.

    Moderator Kathryn Presner

    (@zoonini)

    @sarahsks – hi! I just spotted your note. In future, it’s better to start a new thread so it will be less likely to slip through the cracks! I’m not quite sure what you’re referring to in terms of the order (i.e. where are you seeing the list of types like that?) so if you could please go ahead and start a new thread in the Illustratr forum, please provide a link to the page on your site that you’re referring to so, I can take a look directly. Thanks!

    https://ww.wp.xz.cn/support/theme/illustratr#new-topic-0

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘random order on project-type archives’ is closed to new replies.