Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #16196

    Hi there.

    I was wondering, seeing as the entries are custom post types, would it be possible to make a timeline for the portfolio?

    If so, any idea? I suppose it would have to be made to fetch only custom portfolio posts but I honestly don’t know how to do that.

    Thanks :)

    #90545

    Hi OttoRobba,

    In order to do a timeline, I believe the easiest option would be to use a plugin. Here’s a Google search:

    https://www.google.com/search?q=wordpress+timeline&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

    Regards,

    Mya

    #90546

    I was thinking of using the default timeline template that is included with the theme. If that is not possible, one of the plugins seems to do the trick – quite like the Choice’s timeline though. :)

    #90547

    Hi OttoRobba,

    D’oh. Sorry, I forgot all about the built-in timeline. :)

    To do a timeline for the portfolio:

    1) Open template-post-timeline.php, save as template-portfolio-timeline.php

    2) At the top template-portfolio-timeline.php replace

    /*
    Template Name: Post Timeline
    */

    with

    /*
    Template Name: Portfolio Timeline
    */

    3) Replace this line

    query_posts(array('posts_per_page'=>-1));

    with this line

    query_posts(array('post_type' => 'portfolio','posts_per_page'=>-1));

    4) Upload your new template to the theme directory then go to Pages > Your Timeline Page and select Portfolio Timeline from the drop down list under “Templates” in the “Page Attributes” box.

    That’s it.

    Regards,

    Mya

    #90548

    Exactly what I was looking for!

    Thank you so much Mya, works like a charm :)

    #90549

    Hi,

    Glad it worked. :)

    Regards,

    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Using the Timeline for portfolio posts’ is closed to new replies.