Sidebar - Display Portfolio

Good morning,

I am looking to add a sidebar to my events calendar page and I want all of the contents in my Portfolio to show up in this sidebar. I am not entirely sure how to implement this as there is no option to add portfolio to the sidebar / widget area. Is there any way of achieving this?

http://gnplc.ca/jana/event-calendar/

Thank you!

Hi There @janaroberts

Thanks for writing in! I see that you have already created a sidebar for your events page. You can use a Text widget in your sidebar and place Recent Posts shortcode with offset parameter to display your portfolio items.

By default, recent posts will be limited to 4 items. However you can use the offset parameter to display more than 4 posts.

Follow the example below.
[recent_posts type="portfolio" count="4" orientation="vertical"]
[recent_posts type="portfolio" count="4" orientation="vertical" offset="4"]
[recent_posts type="portfolio" count="4" orientation="vertical" offset="8"]

Please refer to our documentation for more examples (http://demo.theme.co/integrity-1/shortcodes/recent-posts/).

Hope that helps.
Thanks!

Worked perfectly! Thank you SO much!

You are most welcome!

I ended up switching to the Modern Events Calendar and now the sidebar that was displaying my portfolio won’t show up on the full calendar page. Is there any way to fix this?

Also, the title page is defaulting to “Events”, when I changed it to be “Calendar”. Any reason this override isn’t happening?
http://gnplc.ca/jana/calendar/

Thanks,
Jana

Hey Jana,

You can make use of the Yoast SEO Plugin to change the page title of the events.

Please install and activate Yoast SEO then go to SEO > Search Appearance > Content Types > Events > Settings for Events archive > SEO title then change Post Type(plural) to Calendar.

Hope this helps.

That fix for the page title worked great, thank you.
I had another question in my initial post and was hoping you could help:

Hello @janaroberts,

Thanks for updating in!
Please be aware that MEC has its own template. This plugin overrides the theme’s template which is why you no longer have any sidebar in your Calendar page.

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.