• Hi,

    I have a plan for my site, but I’m not sure how to make it work in WP. Here’s my current setup: http://www.champagneblue.com .

    For an example site (inspiration) please check out http://www.okapistudio.com/ . As you’ll see there, there is a section for portfolio work (the home page) and then there’s another section for the blog.

    Ideally, I’d like the blog and portfolio posts to ALL show up on the home page, but then to have a ‘portfolio’ link that then only shows up the portfolio posts that I tag as such ‘portfolio’. But not to use a tag as the link!

    On my current setup, I’ve just replaced the portfolio link at the top with the direct link to the portfolio tag listing. This doesn’t work well because then my pages have the wrong ‘previous’ and ‘next’ links etc.

    Do I need to use pages? Will the pages even work like blog posts, with dates and tags and ‘more’ links?

    SO after that long explanation, can anyone help me?

Viewing 5 replies - 1 through 5 (of 5 total)
  • You mean “listing posts from certain category” i guess. In this case, category “portfolio”…

    Maybe you can make a query like this:
    *********
    <?php $my_query = new WP_Query(‘category_name=portfolio&showposts=20’); ?>
    <?php while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?>

    ******************************

    1- You can create a portfolio.php.

    2- upload it to the server

    3 – Insert this code in portfolio.php:

    <?php
    /*
    Template Name: portfolio
    */
    ?>

    <?php get_header(); ?>

    <div id=”content”>

    <?php $my_query = new WP_Query(‘category_name=portfolio&showposts=5’); ?>
    <?php while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?>

    <div class=”entry”>

    <h1>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h1>
    <?php the_content(”); ?>
    </div>

    <?php endwhile; ?>

    </div>

    <?php get_footer(); ?>

    4- Go to Write Page – Select PAGE TEMPLATE “portfolio”
    5- Of course… you gotta order all the css

    Thread Starter meriadoctookme

    (@meriadoctookme)

    Thanks for your reply. I’ll try implement what you said and see if it helps! It looks right so far.

    @dan when pasting code please use the code quicktags.

    Thread Starter meriadoctookme

    (@meriadoctookme)

    Okay, so I gave that portfolio template stuff a shot, but it’s only making new pages for each piece I want for my portfolio, instead of grouping all entries under the same page. The page links appear at the top as navigation.

    A way to make each portfolio post under the same page?

    [EDIT] I’d like the portfolio pieces to be in their own ‘posts’ with comments active and all…

    Thread Starter meriadoctookme

    (@meriadoctookme)

    Oh, I think there’s something here that I should clear up. I use the simple tags plugin to organise my posts, NOT categories. Could the code provided be edited to put the tag ‘category’ into the portfolio.php?

    thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Making blog and portfolio work together?’ is closed to new replies.