Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #133943
    mmayo
    Participant

    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.

    #133953
    Skandha
    Participant

    @mmayo: The same project got displayed because you used a wrong syntax. It should be include_type= and not include_types=. This syntax should work correctly for all the case.

    Let me know if the issue still persists.
    Regards,
    Skandha

    #133999
    mmayo
    Participant

    When I change the syntax to include_type= then the page I am targeting does not display.

    Thank you.
    Michelle

    #134008
    mmayo
    Participant

    I figured it out. My project type was entered with a capital ‘W’ on ‘Web’. I typed in all lowercase, and it worked. Thanks!

    #134042
    Skandha
    Participant

    @mmayo: You need to be careful with the lettercase while using shortcodes. Glad the issue is solved. Have a good day.

    Regards,
    Skandha

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Portfolio Shortcodes’ is closed to new replies.