• Resolved Sabina

    (@pessimisticoptimist)


    Hello,

    Thanks for a terrific theme. I’ve just begun working on a draft site now at https://gradycreative.com/development/FWAworkingdraft/ and am wondering if there’s a way to have the portfolio items appear oldest first rather than newest first? We have certain pieces we want to appear on the home page and have begun with those, but there will be many more portfolio items I’ll be entering as we build the site and I don’t want them to displace the ones we’ve selected for the home page.

    Alternatively, would it be better/possible for me create a project type named “home” and customize the home page template to only show that type? (I’d rather avoid using a tag since I don’t want the “home” tag to appear as one of the choices in the auto-generated tag lists on the single project pages.)

    I’ve got a child theme set up and am comfortable going into the code to make changes.

    Related side question, which template piece generates the headings of the project-tag pages? (example https://gradycreative.com/development/FWAworkingdraft/project-tag/architectural-collaboration/) We might want to change the wording in the h1 “Project Tag:” to something else.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Glad you’re enjoying Blask!

    I’ll answer your questions separately.

    Portfolio projects are a Jetpack feature. You can check out Jetpack Jeremy’s guide to using a child theme to reorder portfolio projects:

    https://www.ads-software.com/support/topic/reorder-portfolio-projects?replies=5#post-6416076

    If you need further help with it, feel free to post in the Jetpack forum.

    Moderator Kathryn Presner

    (@zoonini)

    Related side question, which template piece generates the headings of the project-tag pages?

    Again, those come from the Jetpack plugin, not the theme. Editing the plugin files directly isn’t recommended, since your changes will be overwritten every time you update Jetpack. You could post in the Jetpack forum to see if there’s any other way to change the wording, but I’m not sure it’s possible.

    Thread Starter Sabina

    (@pessimisticoptimist)

    Sorry, forgot to check back in and say thanks for pointing me in the right direction. Had no idea these were jetpack elements! All set.

    Moderator Kathryn Presner

    (@zoonini)

    Glad you’re set, thanks for letting me know!

    Moderator Kathryn Presner

    (@zoonini)

    p.s. feel free to post your solution in case it helps others who find this thread in the future. ??

    Thread Starter Sabina

    (@pessimisticoptimist)

    Solution was to follow Jetpack Jeremy’s guide to add parameters to the jetpack portfolio loop. So in portfolio-page.php of my child theme, I found the following loop:

    $posts_per_page = get_option( 'jetpack_portfolio_posts_per_page', '10' );
    				$args = array(
    					'post_type'      => 'jetpack-portfolio',
    					'posts_per_page' => $posts_per_page,
    					'paged'          => $paged,
    				);

    and added ‘orderby’ and ‘order’ parameters as follows:

    $posts_per_page = get_option( 'jetpack_portfolio_posts_per_page', '10' );
    				$args = array(
    					'post_type'      => 'jetpack-portfolio',
    					'posts_per_page' => $posts_per_page,
    					'paged'          => $paged,
    					'orderby'        => 'date',
    					'order'          => 'ASC',
    				);

    (I haven’t done anything about the second part of my question yet.)

    Moderator Kathryn Presner

    (@zoonini)

    Excellent – thanks for posting your solution in case it helps others.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Ordering Portfolio Items’ is closed to new replies.