Portfolio not working
-
I am trying to do up a portfolio. My problem is I have added the shortcode to the home page and added two projects to the portfolio but I am getting a message saying there are no projects in the portfolio archive.
When I go to https://ciarasinden.wordpress.com/portfolio/ the projects are there and open when I click on them.
How can I fix/change this so you can see them on my homepage?Thanks,
CiaraThe blog I need help with is: (visible only to logged in users)
-
Hi Ciara,
You may have made a small error in the shortcode. What is the shortcode that your are using the static home page?
-
I took the shortcode from the tutorial but changed the columns to 2 instead of three.
[portfolio display_types=true display_tags=false include_type=ui-design,app-design columns=2 showposts=10 orderby=title]
-
-
See the Display Posts Shortcode support page.
The following, found in the code you’ve given above, are not valid argument types for WordPress.com display posts shortcode:- include_type (though there is a “post_type” argument type)
- columns
- showposts (should be “posts_per_page”)
I don’t know which tutorial you refer to, but it might be applicable to WordPress.org sites rather than WordPress.com sites.
-
Sorry, I messed up. Please ignore that last post and I’ll be back with another response regarding the Portfolio Shortcode you provided above momentarily.
-
See the Portfolio Shortcode support page.
The example shortcode
[portfolio display_types=true display_tags=false include_type=ui-design,app-design columns=3 showposts=10 orderby=title]
would display the latest ten portfolio projects of the types “ui-design” and “app-design,” ordered by title, in three columns (rows of three), with the types displayed. If you have no projects with the types “ui-design” or “app-design” assigned to them, then this shortcode will display nothing when inserted into a page, post, or text widget on your site.
- The topic ‘Portfolio not working’ is closed to new replies.