Limit number of Portfolio items on Home Page


First of all thank you for this great theme.

I just wonder if there is a way to limit the number of portfolio items displayed on Home Page (Thank to the Portfolio Widget).

I would like for example to only show the last 4 portfolios created.
Or at least be able to show only on type of portfolio (ex “Feature”). Which would allow me to chose what portfolio to display on the home page or not.

Thank you for your help,


Hi Ren,

I hope you are well today and thank you for your question.

You can try achieving this by using the custom plugin shared in the following topic.

The above plugin contains following code on line number 47 so just change -1 to number of posts that you want to display in the shapely portfolio widget.

'posts_per_page' => -1,

Best Regards,

Hello Movin,

Thanks for your help

You can try achieving this by using the custom plugin shared in the following topic.

What custom plugin? What following topic? (I Think you forget one link there !)



Sorry just edited my last reply and added the topic URL there.

Thank you for all of your help.
When I try to activate the plugin, the entire portfolio section disappears. Any suggestions?
Thanks again


After the edits you did according to the reply, make sure you re-add the “[Shapely] Porfolio for Home Widget Section” widget to the Homepage widget area in Appearance -> Widgets.

Let us know,



I tried his plugin because I was searching for the same thing. but now, on the portfolio page (where all the entries should be) there are 8 shown normally and the last two with all their text and stuff. and the style of the page is disconfigured.

see here: (corectly displayed 8 first items) (does strange stuff with the last two

Thanks a lot!!

@anna This is old topic and the theme is changed a lot now so to help us keep support thread separates could you please create your own thread for your question here instead of replying on others thread as it makes the thread messy and hard to read.

If you want to you can also add reference of this thread in your newly created thread.

We would be more than happy to help you on your new thread.

yep. Thanks

@anna Thank you. We will reply to your support topic ASAP.