Portfolio short codes don't work in static pages
-
I’m trying to divide portfolio projects according to type between four children pages in Illustratr. I am using the following short code:
[portfolio display_types=false display_tags=true display_content=true include_type=advertisingmarketing columns=3 showposts=15]
I enabled custom content in settings; I created pages using both default and portfolio template; I toggled the custom content on/off; I re-did the menu; but no matter what I do I always get the message that those pages can’t be found.
Can’t I activate the short code in those sub pages?
The blog I need help with is: (visible only to logged in users)
-
Hi there. I tried your shortcode on my test blog and it worked fine.
I think I see the problem. In your shortcode you have the project type as “advertisingmarketing”, but the URL for that project type on your blog is “advertising-marketing”.
Click on Portfolio ->Project Types in your dashboard. Look for the column titled “Slugs”. You have to use the name exactly as it appears in that column in the shortcode, as that’s the address for that project type. Same goes for post categories or tags if you use those in a shortcode.
-
Thank you for your response.
I did what you suggested plus I removed the 4 pages from the parent page (portfolio) and the short codes now work beautifully.
Though I wonder if I can exclude the rest of my projects from showing. example: http://chantalbourbon.com/advertising-marketing/
I used a horizontal line as a divider but I would like for only the chosen types mentioned in the short code to show.
-
Did you use the Portfolio Page Template for that page? If you change the page format to the default one, and there’s nothing but the shortcode on the page, then the other projects shouldn’t display. Let me know if that doesn’t work.
-
Yes. I used the portfolio template for all 4 pages.
My short code looks like this:
[portfolio display_types=false display_tags=false display_content=false include_type=advertisingmarketing columns=2 showposts=15]
the slug corresponds to the project type in the code.
I’m stumped.
-
You did not read my previous post properly.
If you change the page format to the default one, and there’s nothing but the shortcode on the page, then the other projects shouldn’t display.
You don’t need both the shortcode and the portfolio page template. If you use the portfolio page template it will always display all your projects, no matter what else you have on the page. Change the page format to default and make sure the page contains nothing but the shortcode.
-
I’m sorry about that. I misunderstood.
I changed all 4 pages to default and as you predicted everything works perfectly.
Thank you so much.
-
- The topic ‘Portfolio short codes don't work in static pages’ is closed to new replies.