Limit blog feed on homepage to only one category

  • Unknown's avatar

    I have two categories of posts on my site – blog and portfolio posts. I would like to limit my homepage so that it only displays the ones from the portfolio category.

    How can I do this? I have purchased the premium customization add-on.

    The blog I need help with is: (visible only to logged in users)

  • There isn’t exactly a way to do that.

    A similar option would be to create a category page:

    http://en.support.wordpress.com/category-pages/

    And then designate that page as your front page.

  • Unknown's avatar

    There should be a way to have only select portfolio projects appear on the front page selectively via changes to the css. The projects have categories and tags like the posts and I would guess that Portfolio is a function. Doesn’t it have parameters that can be set relative to which Project categories to display on the front page?

    I am on the cusp of purchasing the customization package and my chief aim is having more control over where the Portfolio Projects appear. I want to use them like category pages throughout my blog (don’t want the blog stream look that category pages would give me), but only want to display certain Projects on my front page.

    How can I do that?

  • Unknown's avatar

    Hi wbkenn,

    You can modify the portfolio shortcode to filter which projects are displayed. This doesn’t require the CSS upgrade.

    For example, the portfolio shortcode below will only include projects with the type, “animals:”

    [portfolio include_type=animals]

    You filter down the projects by either type or tag.

    There’s a full list of attributes you can use to modify the portfolio shortcode here:

    Portfolio Shortcode

    Best,

    -Alex G.

  • Unknown's avatar

    I did see that feature, Alex, thanks. The thing is that I’m using the Sketch theme and that automatically adds the portfolio to the front page if you select the portfolio template.

    I know I could just choose another template and use the shortcode but then I couldn’t use the theme’s front page slider since that is part of the Portfolio template.

    I wondered whether there was a css workaround that would let me keep the slider but be selective about the porfolio projects shown rather than display them all (as is now the case).

  • Unknown's avatar

    Hi wbkenn,

    Yeah the Portfolio page template in Sketch is a more unique case. I see the conversation you had with Kathryn about this:

    https://en.forums.wordpress.com/topic/sketch-theme-select-which-portfolio-projects-appear-on-the-front-page?replies=6

    I’d agree with Kathryn that the CSS workarounds here really aren’t ideal for what you’re looking for. If you’re only looking to upgrade for that capability, I wouldn’t recommend it.

    The alternative workaround I suppose is using CSS transformations to find an image solution instead of the featured slider. That way you can use the portfolio shortcode correctly. I’ve seen some cool ideas on image transformations using only CSS. LIke this post:

    http://css3.bradshawenterprises.com/cfimg/

    That would still require some tinkering on your part, but this seems more do-able than using CSS to edit portfolio projects’ visibility.

    Best,

    -Alex G.

  • The topic ‘Limit blog feed on homepage to only one category’ is closed to new replies.