This topic has 6 replies, 2 voices, and was last updated 6 years ago ago by Rose Tyler
Hi, I am trying to add [portfolio] shortcode in a text block in the home page but nothing happens.
Hello,
Please add this code in fucntions.php file of your child theme:
add_shortcode('portfolio', 'etheme_portfolio');
Regards
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
Theme Options > Speed Optimization > Masonry scripts > On.
The shortcode inherits Items per page from Theme Options > Portfolio.
Regards
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.
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
You must be logged in to reply to this topic.Log in/Sign up