HEX
Server: Apache
System: Linux www3.pit.tblive.com 5.14.0-687.38.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 12 17:19:12 EDT 2026 x86_64
User: awaldron (1020)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //home/awaldron/_upmc/pancreaseq.alanwaldron.com/wp-content/themes/pancreaseq/index.php
<?php
/**
 * The main template file
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package WordPress
 * @subpackage Twenty_Twenty_One
 * @since Twenty Twenty-One 1.0
 */

get_header();

$pubs = get_posts(array(
    'order' => 'DESC',
    'posts_per_page' => 100,
    'category' => 3
));

?>

    <div id="sub-splash">
        <h1>Key Publications</h1>
    </div>
    <div class="bg-spacing bg-dna-sub">
        <div class="container-fluid">
            <div class="row">
                <div class="col-3">
                    <ul>
                        <?php wp_nav_menu([
                            'menu' => 'about-pancreaseq-menu'
                        ]); ?>
                    </ul>

                </div>
                <div class="col-9">
                    <?php foreach ($pubs as $post): ?>
                        <?php
                        $meta = get_post_meta($post->ID);
                        $linkOut = $meta['_links_to_target'][0] === '_blank';
                        ?>
                        <article class="post type-post status-publish format-standard hentry category-publication entry">
                            <header class="entry-header">
                                <div class="entry-title default-max-width">
                                    <a href="/<?=$post->post_name?>" <?=($linkOut ? 'target="_blank"' : '')?>><?=$post->post_title?></a>
                                </div>
                            </header><!-- .entry-header -->
                            <div class="entry-content">
                                <?=$post->post_excerpt?>
                            </div><!-- .entry-content -->
                        </article>
                    <?php endforeach; ?>
<!--                    --><?php
//                    if (have_posts()) {
//
//                        // Load posts loop.
//                        while (have_posts()) {
//                            the_post();
//
//                            get_template_part('template-parts/content/content', get_theme_mod('display_excerpt_or_full_post', 'excerpt'));
//                        }
//
//                        // Previous/next page navigation.
//                        twenty_twenty_one_the_posts_navigation();
//
//                    } else {
//
//                        // If no content, include the "No posts found" template.
//                        get_template_part('template-parts/content/content-none');
//
//                    }
//                    ?>
                </div>
            </div>
        </div>
    </div>
<?php
get_footer();