• Hey Community,

    I’m using Kaf’s post_image plugin, and I’m trying to get it to work within the loop on a page. Does the plugin not work on pages?

    By the way, here is the code I’m using inside a page template:

    <? query_posts(array('category__and'=>array(17,24),'showposts'=>5,'order'=>DESC)); ?>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <ul class="bait_featured_pics">
    <?php post_image(); ?>
    <li id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
    <?php the_excerpt_reloaded(10, '<img><a>', 'none', TRUE, '', FALSE, 2); ?></li>
    </ul>
    <?php endwhile; ?>
    <?php endif; ?>

    Any help/info is greatly appreciated!

    Best,
    Orion

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter startribe

    (@startribe)

    I just realized that I posted this in the installation section. Could a moderator move it to the custom/design forum?

    Also, as another note, I checked the html, and the plugin is processing the image tag as:
    <img class="post-image" src="" title="" alt="" />

    For some reason it’s not picking up the needed info. Also, the plugin works fine on my category pages. Could I make a small change in the source file that will make this work on a page template?

    Again, any help is appreciated!

    Thread Starter startribe

    (@startribe)

    Ahhhh! I figured it out!

    Ok, I searched around on Kaf’s blog and found a comment about changing some code around in the plugin. The comment linked to this post on a forum:
    WordPress Post Images/Icons

    I followed the instructions in the post, and it worked. The plugin now works for pages!

    So for anyone who runs into the same problem as I did, there’s the solution.

    Thread Starter startribe

    (@startribe)

    Also, could a moderator please move this into the appropriate forum; I accidentally put it in installation.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘post image’ is closed to new replies.