Limit number of Portfolio items on Home Page

Hello,

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,

Ren.

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.

https://colorlibsupport.com/t/portfolio-widget-does-not-show-more-than-10-projects/#post-55822

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,
Movin

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 !)

Thanks,

Ren.

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

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

Hi,

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,

Thanks,
laranz.

Hi!

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:
annaschimpf.com (corectly displayed 8 first items)
http://www.annaschimpf.com/es/portfolio/ (does strange stuff with the last two

Thanks a lot!!
anna

@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 https://colorlibsupport.com/c/shapely/ 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

https://colorlibsupport.com/t/shapely-portfolio-widget-for-home-page-and-portfolio-page/

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