Blask Theme – Projects displayed by type on the first page

  • Author
    Posts
  • #2987659

    Hi,

    I’m trying to add a shortcode to display on the first page only the projects that have a certain type, but it doesn’t work.

    This is the shortcode I used:
    [portfolio display_types=false display_tags=false include_type=graphic columns=3 showposts=10 orderby=rand]

    For other themes, it works, but for Blask it doesn’t.

    I would appreciate some help. Thank you!

    The blog I need help with is cristinatripon.wordpress.com.

    #2987846

    dave2swords
    Member

    Hi there

    I’m trying to add a shortcode to display on the first page only the projects that have a certain type, but it doesn’t work.

    Shortcodes are great when they work aren’t they?

    You do not mention specifically if you followed the instructions on the Blask Theme page in the Setting up the Front Page Portfolio section about half way down.

    If you do not do this, the front page will display your portfolios as blog entries.

    Hope that helps!
    dave

    #2987848

    Hi Dave,

    Yes, I already did that and still it doesn’t work.

    Cristina

    #2987869

    dave2swords
    Member

    Hi Cristina
    I looked at the page source and see that you are indeed using the Portfolio page template. It shows the portfolios as Blog Posts. For example:
    <article id="post-866" class="post-866 jetpack-portfolio type-jetpack-portfolio status-publish format-standard has-post-thumbnail hentry jetpack-portfolio-type-photography portfolio-entry (with a lot of other computer gobbletygook)

    So let’s look at the Shortcode. Your shortcode is:

    [portfolio display_types=false display_tags=false include_type=graphic columns=3 showposts=10 orderby=rand]

    And the display post from the page source is displaying

    portfolio-type-photography

    Your Shortcode is set to display all Portfolio Projects that are “graphic”, and it appears that all of your portfolios are graphic, so they are all being displayed. You can manage the Portfolio types in the Portfolio Menu.

    So I believe this is the next place to look. Let us know how this works out!
    dave

    #2987946

    Thank you so much for the detailed explanation. But I already did that too, I knew about it. All the projects that I want to be displayed have the type graphic and the others have another type (not graphic). Other solution I don’t know. From here I’m stuck.

    #2987952

    dave2swords
    Member

    Hi Cristina

    All the projects that I want to be displayed have the type graphic and the others have another type (not graphic).

    It goes a little deeper than that. Note again that the page is displaying
    portfolio-type-photography
    and you are telling it
    include_type=graphic

    So somehow your Portfolio Projects are all “graphic”, and are being displayed as “photography”.

    Again, I’d be looking at the Portfolio Project categories and Project tags to tighten up what is being displayed.

    best,
    dave

    #2988002

    kathrynwp
    Staff

    Hi triponcristina – when you assign the Portfolio Page Template to the front page in Blask, that tells the front page to display all your projects. You can’t combine the Portfolio template with the shortcode.

    If you prefer to use the shortcode, choose the Default Template instead.

    Let me know how it goes.

    p.s. you also have some HTML tags around your shortcode, those should be removed. If you switch to HTML view you’ll see this:

    <h4>[portfolio display_types=false display_tags=false include_type=graphic columns=3 showposts=10 orderby=rand]`</h4>
     `

    Change that to:

    [portfolio display_types=false display_tags=false include_type=graphic columns=3 showposts=10 orderby=rand]

The topic ‘Blask Theme – Projects displayed by type on the first page’ is closed to new replies.