- This topic has 4 replies, 2 voices, and was last updated 6 years, 1 month ago by Skandha.
-
AuthorPosts
-
March 22, 2018 at 4:31 pm #133943mmayoParticipant
I am trying to embed a portfolio project on a page. I have activated the Portfolio custom content type on my site and I have added a project with project type ‘Web’.
On the page titled ‘Web’, I have added the following portfolio shortcode:
[portfolio display_types=true display_tags=false include_types=Web columns=2 showposts=10 orderby=title]
This shortcode works.
On a separate page titled ‘Print’, I inserted the same short code, but I changed the “include_types=Print”.
[portfolio display_types=true display_tags=false include_types=Print columns=2 showposts=10 orderby=title]
The same project displayed. I was hoping that no project would display since I have not created a project with project types=Print yet.
In the example code, the ‘include_type=’ was singular, and I had to add an ‘s’ in order to get it to work. [portfolio display_types=true display_tags=false include_type=grooming-tips,best-kitties columns=2 showposts=10 orderby=title]
I have not launched my site, so I am sorry I can not send an url. Please let me know if you need more info.
Thank you.
March 23, 2018 at 1:07 am #133953SkandhaParticipant@mmayo: The same project got displayed because you used a wrong syntax. It should be
include_type=
and notinclude_types=
. This syntax should work correctly for all the case.Let me know if the issue still persists.
Regards,
SkandhaMarch 23, 2018 at 12:25 pm #133999mmayoParticipantWhen I change the syntax to include_type= then the page I am targeting does not display.
Thank you.
MichelleMarch 23, 2018 at 3:02 pm #134008mmayoParticipantI figured it out. My project type was entered with a capital ‘W’ on ‘Web’. I typed in all lowercase, and it worked. Thanks!
March 24, 2018 at 12:18 pm #134042 -
AuthorPosts
- The topic ‘Portfolio Shortcodes’ is closed to new replies.