One shortcode shows the list twice
-
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
-
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!
Thank you
Here is the page :
http://www.marathon-media.fr/the-team-2/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!
“Check the page template this particular page is using for errors in the loop.”
What do you mean ?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?
This is the basic WordPress theme.
How can I send you the page.php file ?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.
I just adapted the basic theme.
I was thinking of sending you the page.php file for you to check ?
<?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(); ?>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.
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).
Well it was working fine until I did an update of the plugin. Is it possible to get the previous versions ?
Thank you
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.
Thank you, well it is working fine with version 1.12 !
Great! That’s cool! It works for me , too!
- The topic ‘One shortcode shows the list twice’ is closed to new replies.