• Hi,

    Is it possible to replace the “Other Projects” with Jetpack’s Related Posts and if so, how? Is there a way of disabling the Other Projects feature?

    Simply activating the related posts for Projects actually only adds to the existing “Other Projects” and hiding it with

    .project-navigation {
    	display: none;
    }

    is not very elegant…

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

    (@zoonini)

    Is there a way of disabling the Other Projects feature?

    Other than hiding it with CSS you could remove that section in a child theme.

    You can learn about customizing Jetpack Related Posts here:

    https://jetpack.me/support/customize-related-posts/

    Let me know if you need further help, and if you could provide a link to your site again that’s always helpful. Thanks!

    Thread Starter Rolf Allard van Hagen

    (@ravanh)

    OK, so a child theme with in its functions.php

    /* Allow Jetpack "Related" for Projects */
    function allow_my_post_types($allowed_post_types) {
        $allowed_post_types[] = 'jetpack-portfolio';
        return $allowed_post_types;
    }
    add_filter( 'rest_api_allowed_post_types', 'allow_my_post_types' );
    
    /* Suppress Harmonic "More Projects" nav */
    function harmonic_portfolio_pagination() { }

    should do the trick 🙂

    Moderator Kathryn Presner

    (@zoonini)

    Glad you figured it out – thanks for posting here in case it helps others in the future.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Replace Other Projects with Jetpack's "Related"’ is closed to new replies.