page with posts template?

  • Sheryl

    #18814

    Well, we aren’t really re-coding a plug-in, just augmenting it. 🙂 I was using the default template. I made a copy of the default template and renamed it. Nifty little plugin, my template automatically shows up in the list!

    Looking at what Ken posted, the description and the example seem to imply it will list posts dynamically within a page, but still not give each post the distinctive “I’m a post” look. But with all the nifty options, perhaps it will do what I want stylistically and not just functionally. I’ll let you know either way. But not tonight. 🙂

    Sheryl

    #18815

    Ok, so I checked out the plugin Kalin’s post list and while it may indeed be more powerful, it is much more complicated and still requires a bit of coding to get the posts to display how I’m hoping. It is also not nearly as user friendly for when I turn this site over to others. I think the “Associate posts with page” plugin is really going to be my best bet, if I can get a template working with the style I’m hoping for.

    Mod

    Kenneth John Odle

    #18816

    By “mimic” I mean for the posts to appear like they do on a post archive page

    So why not just use a post archive? What is it about the regular archive that just isn’t doing it for you?

    You can add formatting using Kalin’s plugin. I just slapped this example together in about 90 seconds:

    http://blog.kjodle.net/wordpress-helps-a-complete-listing-with-longer-excerpts/

    Sheryl

    #18817

    A post archive doesn’t allow for static text ahead of the posts. That’s the effect I’m going for. And I don’t want to use a sticky post because the static text I do NOT want to look like a post. Am I making sense?

    As for Kalin’s plugin, I’ll admit that when I looked at it I had trouble making sense of what I needed to do in order to generate the short code to display the info I want, let alone how to then format it to utilize the CSS of Graphene. Because Graphene has so many great features you can easily turn on and off, it makes burrowing down to the nuts and bolts of the markup a little trickier for me.

    Mod

    Kenneth John Odle

    #18818

    A post archive doesn’t allow for static text ahead of the posts. That’s the effect I’m going for.

    Exactly!

    To be honest, I have seen a lot of requests for something like Kalin’s Post List plugin. I may do a tutorial on how to use it and incorporate it with Graphene’s formatting so it will do something like what you are describing. (There is a bit of a learning curve, I admit.) Interested?

    Sheryl

    #18819

    Totally! I’ll admit I looked at the settings page for the plug-in and was a bit overwhelmed, even the tutorial wasn’t much help.

    Have you looked at all at the Associate Posts with Page plugin? Other than the annoying “donate now” message you get popping up all over the dashboard, it is a bit more user friendly than Kalin’s as it creates controls at the bottom of each edit page screen. And it lets you create your own templates for how to display the posts which you select for each page. Creating a template for that plugin that incorporate’s Graphene’s formatting might be simpler and in the long run easier for php challenged users like me.

    Whichever way you go, though, keep me in the loop!! And thanks for showing such an interest.

    Anonymous

    #18820

    Sheryl,

    Do you have this plugin activated? Can you provide a URL to a page like the ones in your example… so I can play around with the css?

    Sheryl

    #18821

    I do have it activated. Here is a page where it is being used, with the setting of the “default template.”

    http://66.147.244.91/~resouri7/wordpress/resources/highlights/

    And here is a place where I’ve simply redirected the page (menu item) to the category archive.

    http://66.147.244.91/~resouri7/wordpress/resources/insights-on-the-lectionary/

    One thing definitely missing in the former is the “Continue Reading” button – the novice user might miss those little “…” at the end and then still not know to click the post title to get the whole post.

    Anonymous

    #18822

    Okay, this is a HUGE shot in the dark… but in your plugins templates/title-excerpt-thumbnail.php, replace this:

    <h3 class="post-title">
    <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title() ?></a>
    </h3

    With this:

    <div class="date updated">
    <p class="default_date"><?php the_time('M'); ?><br /><span><?php the_time('d') ?></span>
    <?php if ($graphene_settings['post_date_display'] == 'icon_plus_year') : ?>
    <br /><span class="year"><?php the_time('Y'); ?></span>
    <?php endif; ?>
    </p>

    <?php do_action('graphene_post_date'); ?>

    </div>
    <?php endif; ?>

    <?php /* Show the post author's gravatar if enabled */
    if ($graphene_settings['show_post_avatar'] && !is_page() && get_post_type($post) != 'page') {
    echo get_avatar(get_the_author_meta('user_email'), 40);
    } ?>

    <?php do_action('graphene_before_post'); ?>

    <div class="entry clearfix">

    <?php /* Post title */
    $tag = (is_singular() && !is_front_page()) ? 'h1' : 'h2';
    echo '<'.$tag.' class="post-title entry-title">';
    ?>
    <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(esc_attr__('Permalink to %s', 'graphene'), the_title_attribute('echo=0')); ?>"><?php if (get_the_title() == '') {_e('(No title)','graphene');} else {the_title();} ?></a>
    <?php do_action('graphene_post_title'); ?>
    <?php echo '</'.$tag.'>'; ?>

    <?php /* Post meta */ ?>
    <?php if (get_post_type($post) != 'page' || is_user_logged_in() || (is_singular() && $graphene_settings['print_css'] && $graphene_settings['print_button'])) : ?>
    <div class="post-meta clearfix">

    <?php /* Post category, not shown if this is a Page post or if admin decides to hide it */ ?>
    <?php if (!is_page() && ($graphene_settings['hide_post_cat'] != true)) : ?>
    <span class="printonly"><?php _e('Categories:', 'graphene'); ?> </span>
    <ul class="meta_categories">
    <li><?php the_category(",</li>n<li>") ?></li>
    </ul>
    <?php endif; ?>

    <?php
    /* Add a print button only for single pages/posts
    * and if the theme option is enabled.
    */
    if (is_singular() && $graphene_settings['print_css'] && $graphene_settings['print_button']) : ?>
    <p class="print"><a href="javascript:print();" title="<?php esc_attr_e('Print this page', 'graphene'); ?>"><span><?php _e('Print this page', 'graphene'); ?></span></a></p>
    <?php endif; ?>

    <?php /* Add an email post icon if the WP-Email plugin is installed and activated */
    if(function_exists('wp_email') && is_singular()) {echo '<p class="email">'; email_link(); echo '</p>';}
    ?>

    <?php /* Edit post link, if user is logged in */ ?>
    <?php if (is_user_logged_in()) : ?>
    <p class="edit-post">
    <?php edit_post_link(__('Edit post','graphene'), ' (', ')'); ?>
    </p>
    <?php endif; ?>

    <?php /* Inline post date */ ?>
    <?php if ( $graphene_settings['post_date_display'] == 'text' && graphene_should_show_date() ) : ?>
    <p class="post-date-inline updated">
    <abbr class="published" title="<?php the_date('c'); ?>"><?php the_time(get_option('date_format')); ?></abbr>
    </p>
    <?php endif; ?>

    <?php /* Post author, not shown if this is a Page post or if admin decides to hide it */ ?>
    <?php if ($graphene_settings['hide_post_author'] != true) : ?>
    <p class="post-author author vcard">
    <?php
    if (!is_page() && get_post_type($post) != 'page') {
    /* translators: this is for the author byline, such as 'by John Doe' */
    _e('by','graphene'); echo ' <span class="fn nickname">'; the_author_posts_link(); echo '</span>';
    }
    ?>
    </p>
    <?php endif; ?>

    <?php /* For printing: the date of the post */
    if ($graphene_settings['print_css'] && graphene_should_show_date() ) {
    echo graphene_print_only_text(get_the_time(get_option('date_format')));
    }
    ?>

    <?php do_action('graphene_post_meta'); ?>
    </div>
    <?php endif; ?>
    Mod

    Kenneth John Odle

    #18823

    @Sheryl

    An admittedly rushed tutorial for Kalin’s Post List is here: http://blog.kjodle.net/2011/10/30/kalins-post-list-a-brief-tutorial/

    You may find part 6 to be especially interesting.

Viewing 10 posts - 11 through 20 (of 21 total)

  • You must be logged in to reply to this topic.