Here you go:
<?php
//* Display the content
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'child_do_custom_loop' );
add_filter( 'get_the_archive_title', function ( $title ) {
$title = 'The Arcato Team';
return $title;
});
function child_do_custom_loop() {
$posts_per_page = 6;
echo '<article class="page type-page status-publish entry">';
echo '<div class="wrap">';
if ( have_posts() ) {
$counter = 0;
$page_no = htmlspecialchars($_GET["page"]);
$total_posts = wp_count_posts();
$max_pages = round($total_posts/$posts_per_page);
if ( empty ($page_no) ) $page_no=1;
if ( $page_no > $max_pages ) $page_no=1;
$start_post_no = ( $posts_per_page * $page_no ) - $posts_per_page;
$end_page_no = $start_post_no + $posts_per_page;
while ( have_posts() ) {
the_post();
if ( $counter < ( $start_post_no + $posts_per_page ) ) {
if ( $counter >= $start_post_no ) {
echo '<div class="first"></div>';
echo '<h1>' . get_the_title() . '</h1>';
$profile_image_url = wp_get_attachment_image_src( get_post_thumbnail_id( $post ), 'medium' );
if ( !empty($profile_image_url) ) echo '<img src="' . $profile_image_url[0] . '" class="alignleft">';
echo the_content();
echo '<p>?</p>';
}
$counter++;
}
}
echo show_share_buttons();
}
echo '</div>';
echo '</article>';
}
// Run the loop
genesis();
The show_share_buttons() function is in my functions.php. Here’s the code for that:
// return the page share buttons
function show_share_buttons( $padding=true) {
$return_string = '<div class="first alignright">';
if ($padding) $return_string .= '<p>?</p><p>?</p>';
$return_string .= '<p><b>Share:</b> ' . do_shortcode('[feather_share]') . '</p>';
$return_string .= '</div>';
return $return_string;
}