Display Portfolio Items by Random - by jeffunik72

This topic has 10 replies, 2 voices, and was last updated 6 years, 6 months ago ago by Rose Tyler

  • Avatar: jeffunik72
    jeffunik72
    Participant
    October 16, 2017 at 21:32

    Hi, i’m trying to figure out how to get the portfolio template page to show
    the portfolio items in random order instead of by date or what ever way they are generated currently.

    i’ve scanned around the theme code trying to find it but have lost hope. Is there a function I can add or even better where can i edit this? thanks.

    9 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 17, 2017 at 09:13

    Hello,

    You may edit framework/portfolio.php file and change get_etheme_portfolio function https://prnt.sc/gye7q3, https://prnt.sc/gye7yt 'orderby' => 'rand' > https://prnt.sc/gye8ez

    Regards

    Avatar: jeffunik72
    jeffunik72
    Participant
    October 17, 2017 at 16:17

    unfortunetly I have replaced the code with what is given in my child theme and it is not working.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 17, 2017 at 16:19

    Seems such changes won’t working from the child theme, you need to make changes in the file of parent theme.

    Regards

    Avatar: jeffunik72
    jeffunik72
    Participant
    October 17, 2017 at 19:00

    Ok, so I have attempted to make the change in the parent folder, and as soon as I add that function I get an error and the page won’t load, I take out the code and the page comes back.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 18, 2017 at 07:37

    Hello,

    Please provide wp-admin and FTP access in Private Content.

    Regards

    Avatar: jeffunik72
    jeffunik72
    Participant
    October 18, 2017 at 13:47

    Ok Info is listed below.

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 19, 2017 at 08:55

    Hello,

    Done, please check your portfolio page now.
    Please see screenshot with name of your parent theme https://prnt.sc/gz92wn

    Regards

    Avatar: jeffunik72
    jeffunik72
    Participant
    October 19, 2017 at 13:42

    Wow thats great, so was there anything in particular I was doing wrong as to why it wasn’t working when i tried it, because I did that in change in that particular theme folder but like I said I kept getting an error and it crashed the website?

    Thank you for everything.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 19, 2017 at 14:59

    Hello,

    You’re welcome!
    I am not sure what exactly you did wrong. We simply made these changes http://prntscr.com/gzdtrh.

    Regards

  • Viewing 10 results - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.