Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter holtzy

    (@holtzy)

    Thank you for this advice !

    I contacted the Jetpack team who proposed me to add these lines in the function.php file of my child theme :

    add_filter( 'featured_content_post_ids', 'akh_shuffle_jp_featured_content' );
    
    function akh_shuffle_jp_featured_content( $featured_ids ) {
    	shuffle( $featured_ids );
    	return $featured_ids;
    }

    It adds a shuffle function to choose the ID of the displayed picture. But it does not work : nothing changed in my website unfortunately.

    If someone has any idea of something else to try, or any modification I could do on these code lines…. WOuld be awesome !

    Thread Starter holtzy

    (@holtzy)

    Yes it works perfectly !!! I can’t believe it was that easy. I just summarize how I did in case other people want to do it.

    1/ Copy the file /www/wp-content/themes/sketch/portfolio-page.php in your child theme.

    2/ Edit this file, and add the code proposed by sunbrite_0728. You have to add it where you want your comment area to be. I wanted to have the comments just over the portfolio, like in this page : http://www.r-graph-gallery.com/19-map-leafletr/.

    So I add the code just after this in the portfolio-page.php file :

    if ( $project_query -> have_posts() ) :
    			?>

    Thank you very much for your support !

Viewing 2 replies - 1 through 2 (of 2 total)