Portfolio shortcode not working - by Stefanos Kaltsatos

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

  • Avatar: Stefanos_Kaltsatos
    Stefanos Kaltsatos
    Participant
    December 6, 2018 at 00:58

    Hi, I am trying to add [portfolio] shortcode in a text block in the home page but nothing happens.

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 6, 2018 at 10:32

    Hello,

    Please add this code in fucntions.php file of your child theme:
    add_shortcode('portfolio', 'etheme_portfolio');

    Regards

    Avatar: Stefanos_Kaltsatos
    Stefanos Kaltsatos
    Participant
    December 6, 2018 at 10:57

    Thank you that worked. I have noticed that the filters don’t work on the home page widget using this shortcode but in the portfolio page it works alright. Can you please advise me how to make the filters work like on the portfolio page, and how to set max portfolio items to show with this shortcode?
    Thank you in advance

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 6, 2018 at 11:15

    Theme Options > Speed Optimization > Masonry scripts > On.
    The shortcode inherits Items per page from Theme Options > Portfolio.

    Regards

    Avatar: Stefanos_Kaltsatos
    Stefanos Kaltsatos
    Participant
    December 11, 2018 at 00:22

    Thank you very much for the answer, now it works, but I noticed one bug. In the home page, after set to show 6 items per page, if I hit the second page button, the home page reloads but nothing changes, still showing the first portfolio page. Check it up on my website.
    Also, I was wondering if I could set the shortcode to show only 6 items like [portfolio columns=3 showposts=6 orderby=title], or something like that, so as I only restrict showing 6 items when I use the sortcode and not on the portfolio page.
    Thank you in advance.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 11, 2018 at 16:44

    Hello,

    I’ve passed your suggestions to our developers and I hope this will be added in one of next theme updates.
    For now, to display projects of the portfolio on the page, please try to use Post Grid or Post Masonry Grid http://prntscr.com/fkel1n http://prntscr.com/fkelec, select design http://prntscr.com/fkemf8 or create it by yourself http://prntscr.com/fkemjh https://vc.wpbakery.com/video-academy/grid-builder.

    Regards

  • Viewing 6 results - 1 through 6 (of 6 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.