WordPress.org

Ready to get started?Download WordPress

Forums

Simple Staff List
[resolved] One shortcode shows the list twice (17 posts)

  1. antoineverdier
    Member
    Posted 1 year ago #

    Hi,

    Since I updated to the latest version, the list appears twice on the page. How can I correct this issue or how can I download the older version ?

    Thank you very much

    Antoine

    http://wordpress.org/extend/plugins/simple-staff-list/

  2. Brett Shumaker
    Member
    Plugin Author

    Posted 1 year ago #

    Hey antoineverdier,
    Can you post a link to the site where you're having problems? I'll see if I can help you fix your problem.

    Thanks!

  3. antoineverdier
    Member
    Posted 1 year ago #

    Thank you

    Here is the page :
    http://www.marathon-media.fr/the-team-2/

  4. Brett Shumaker
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the link!

    This seems to be an issue with the content for the page being pulled in twice. I looked at the HTML source and the div: <div id="post-3916"> with it's comments area are showing up twice. Check the page template this particular page is using for errors in the loop.

    Thanks!

  5. antoineverdier
    Member
    Posted 1 year ago #

    "Check the page template this particular page is using for errors in the loop."
    What do you mean ?

  6. Brett Shumaker
    Member
    Plugin Author

    Posted 1 year ago #

    A WordPress page will most likely, depending on the theme, be using 'page.php' to display the contents of a page. I believe the issue you've described is an error in this theme's page.php file.

    Which theme are you using? Can you post a link to it?

  7. antoineverdier
    Member
    Posted 1 year ago #

    This is the basic WordPress theme.
    How can I send you the page.php file ?

  8. Brett Shumaker
    Member
    Plugin Author

    Posted 1 year ago #

    Actually, it looks like it's using a theme titled 'marathon_media' Was theme custom built for your website?

    You'll need to have FTP access to your website, you can find the file in '/wp-content/themes/marathon_media/page.php

    If you don't have FTP access, please reach out to the theme developer.

  9. antoineverdier
    Member
    Posted 1 year ago #

    I just adapted the basic theme.

    I was thinking of sending you the page.php file for you to check ?

  10. antoineverdier
    Member
    Posted 1 year ago #

    <?php
    /**
    * The template for displaying all pages.
    *
    * This is the template that displays all pages by default.
    * Please note that this is the WordPress construct of pages
    * and that other 'pages' on your WordPress site will use a
    * different template.
    *
    * @package WordPress
    * @subpackage Twenty_Ten
    * @since Twenty Ten 1.0
    */

    get_header(); ?>

    <div id="container">
    <div id="content" role="main">

    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>

    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <?php if ( is_front_page() ) { ?>
    <h2 class="entry-title"><?php the_title(); ?></h2>
    <?php } else { ?>
    <h1 class="entry-title"><?php the_title(); ?></h1>
    <?php } ?>

    <div class="entry-content">
    <?php the_content(); ?>
    <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
    <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
    </div><!-- .entry-content -->
    </div><!-- #post-## -->

    <?php comments_template( '', true ); ?>

    <?php endwhile; ?>

    </div><!-- #content -->
    </div><!-- #container -->

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

  11. Brett Shumaker
    Member
    Plugin Author

    Posted 1 year ago #

    I don't see anything immediately wrong in this code, but without knowing for sure which page template is generating the page you showed me, I don't think I can be of much help. I would need to be able to login to the backend of your site to know for certain where the error is.

  12. aehank
    Member
    Posted 1 year ago #

    Hi I had the same problem and I managed to fix it. I only just started playing around with WordPress so this may just be a partial solution but it worked for me.

    In my case the post were being posted using a while loop:
    while (have_posts()) : the_post(); ?>

    Above this was a function called query_posts:

    global $post, $query_string, $SMTheme;
      query_posts($query_string);

    After a little research I came across the function wp_reset_query which is the clean-up function after query_posts used to restore the original main query.

    So you should have something like this:

    global $post, $query_string, $SMTheme;
      query_posts($query_string);
      wp_reset_query();

    Hope this works for you too!

    Here's my team page for reference (I used the simple staff list with a custom template).

  13. antoineverdier
    Member
    Posted 1 year ago #

    Well it was working fine until I did an update of the plugin. Is it possible to get the previous versions ?

    Thank you

  14. Brett Shumaker
    Member
    Plugin Author

    Posted 1 year ago #

    What initially fixed the issue you were having?

    Previous versions of the plugin can be found here: http://wordpress.org/extend/plugins/simple-staff-list/developers/

    Just click on the version number you want to download.

  15. antoineverdier
    Member
    Posted 1 year ago #

    Thank you, well it is working fine with version 1.12 !

  16. chuhaystr
    Member
    Posted 6 months ago #

    Great! That's cool! It works for me , too!

  17. KimWhite
    Member
    Posted 4 months ago #

    I was using the 1.15 version and had the doubling thing happen on one genesis site but not the other.
    I just went back to 1.12 and it works fine.
    I hope I can update in the future.
    thanks
    k

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic