Support » Plugin: Display Posts Shortcode » Alternative way to display posts in the loop

  • Bill,

    I know my comment is sightly off topic, but stay with me and you’ll see why it’s relevant to “Display Posts Shortcode”.

     * Template Name: Projects
     * This file handles blog posts with the category Projects within a page.
    remove_action('genesis_loop', 'genesis_do_loop');
    add_action('genesis_loop', 'custom_do_cat_loop');
    function custom_do_cat_loop() {
        global $query_args;  // any wp_query() args
        $args= array('cat' => '30');
        genesis_custom_loop(wp_parse_args($query_args, $args));

    For SEO purposes, I want to create an alternative post loop in Genesis that subordinates individual posts to separate “cornerstone” pages ~ giving the site *real* structure, rather than simply displaying them in a blog and faking it with categories and tags.

    How do I replace the loop in Genesis with a loop that loads post URLs rather than categories?

    Here’s a loop that displays the title and an excerpt with a link for each post in the section.

    <?php if ( cnr_have_children() ) : while ( cnr_have_children() ) : cnr_next_child(); ?>
    <h3><?php the_title(); ?></h3>
    <div><?php the_excerpt(); ?></div>
    <?php endwhile; endif; ?>

    I am not a developer so any help you can give me would be much appreciated.

    The goal is to not use a blog but end up with a structure like this


Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Alternative way to display posts in the loop’ is closed to new replies.