WordPress.org

Ready to get started?Download WordPress

Forums

sociable after "read more" (5 posts)

  1. elementel
    Member
    Posted 4 years ago #

    I'm trying to set the sociable.php file so that the sociable array appears after the "Read More" permalink that is displayed after the excerpt.

    Currently sociable is shoving the array in right after the_excerpt and then "Read more" is left below the array. It doesn't look good and makes it hard to quickly read more.

    I see that you can manually add the if function and have it hardcoded into the template. This would be fine except that my client wants to control whether or not they appear. So I need a solution that relies on the regular use of the plugin but move it somehow AFTER the "read more" link.

    Any help?

  2. sociable
    Member
    Posted 4 years ago #

    elementel: Please check your template or submit a link for us to check. Regards.

  3. elementel
    Member
    Posted 4 years ago #

    i cant show the site right now, it is private but here's the template code

    //
    <?php
    $temp = $wp_query;
    $wp_query= null;
    $wp_query = new WP_Query();
    $wp_query->query('showposts=5'.'&paged='.$paged);
    if ($wp_query->have_posts()) : while ($wp_query->have_posts()) : $wp_query->the_post();
    global $more; $more = 0;
    ?>

    <h1>" rel="bookmark"><?php the_title(); ?></h1>
    <p><?php the_time('F j, Y'); ?></p>

    <?php the_excerpt(); ?>
    " title="Read the rest of <?php the_title(); ?>">Read the rest of this entry ยป
    <div style="clear:both;"></div>

    <?php endwhile; ?>
    <?php else: ?>

    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>

    <?php endif; ?>
    <p><?php posts_nav_link(' — ', __('« Previous Page'), __('Next Page »')); ?></p>
    <?php $wp_query = null; $wp_query = $temp;?>

    </div>

    <?php include(TEMPLATEPATH."/sidebar_right_post.php");?>

    </div>

    <?php get_footer(); ?>
    //

  4. elementel
    Member
    Posted 4 years ago #

    I can't believe I'm the only one having problems with this. It's funny because I was searching again for a solution to this when I found my own original thread.

    Everytime I use the excerpt function sociable wants to display BEFORE the "read more" comment. It should be simple. I should be able to tell sociable when to display, and in this instance AFTER the Read more link rather than the excerpt.

  5. elementel
    Member
    Posted 4 years ago #

    http://www.pilates1901.com/blog/

    Here is an example of a site I am having trouble with. See the "Share and Enjoy" links and how they are appearing before the "Read More" link.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags