• Resolved aubourget

    (@aubourget)


    Hello everyone,

    I have an issue, I am new and I do not know if it’s a misuse of a widget or something like this.
    If you click on the page I attached, it’s a page for ONE post I wrote.
    However, under the post, and under the similar articles widget and social networks widget, you can notice that extra posts were added…
    I would like to remover them, as that page is only for one post and not all, and it’s messy.
    Let me know if you have some tips.

    Sorry for my bad English.
    Thanks!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @auborget, I’m @ricotheque from LyraThemes. 🙂

    I’m unfortunately getting a “page not found” error when I try to load your URL. However, I saw what you were talking about at http://vie-naturelle.info/produit-menager/astuces-deboucher-evier-douche-baignoire.htm

    Could you try disabling all your plugins, and see if that fixes the issue?

    Thread Starter aubourget

    (@aubourget)

    Hello @ricotheque!

    Thanks for the tip, and yes sorry I updated the URL afterwards, but it does not really matter as it is a whole new blog, so I only posted it here.

    I figured out which widget was problematic.

    It’s the Enhanced Text widget, which I use to publish Random Posts on the Sidebar.
    I use the following code (found on that page ).

      <?php query_posts(‘showposts=6&orderby=rand’); ?>
      <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    • <b>“><?php the_title(); ?></b><br /><br />
      <p><?php global $post; $excerpt = $post->post_excerpt;
      if($excerpt==”){$excerpt = get_the_content(”);}
      echo wp_html_excerpt(strip_shortcodes($excerpt),100); ?>…</p>
    • <?php endwhile; endif; ?>

    But apparently it’s messing up everything, because when I remove it, the blog comes back to normal.

    If anyone of you have any tips to have the same kind of configuration for random posts, without using that widget, I would be glad to hear it! 🙂

    Best

    Thread Starter aubourget

    (@aubourget)

    Ok, I’am learning step by step and found where to add the php code (yes, I am a real beginner 🙂 ).

    It’s all good now, thanks a lot !

    @aubourget, glad to hear you’ve fixed it! 🙂

    This plugin might be helpful: https://wordpress.org/plugins/advanced-random-posts-widget/

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Extra articles appear below my usual article’ is closed to new replies.