WordPress.org

Ready to get started?Download WordPress

Forums

List category posts
[resolved] Shortcode displays content twice (4 posts)

  1. forumcivico
    Member
    Posted 3 years ago #

    Hello,

    we updated the plugin to latest version, and now a shortcode like thus:

    [catlist id=28 orderby=date order=DESC numberposts=10 date=yes excerpt=yes]

    displays the content twice. See the corresponding page here (content is in italian)

    http://www.forumcivico.it/soloeventi

    http://wordpress.org/extend/plugins/list-category-posts/

  2. fernandobt
    Member
    Plugin Author

    Posted 3 years ago #

    I tried to reproduce this error on a local installation of WordPress with your same parameters and haven't been able to. I looked at the source code on your page, and I suspect there's an external factor causing this.

    This code is being repeated:

    <div class="content box-no-title fluid-height headway-leaf" id="leaf-109">
    <div class="headway-leaf-inside">
    <div class="leaf-content">
    <div id="post-256" class="hentry page author-forum-civico"><h1 class="page-title">Lista SoloEventi</h1><div class="entry-content"><ul class="lcp_catlist"><li><a href="http://www.forumcivico.it/lista-soloeventi-2-259.html">Lista SoloEventi</a> 16/02/2011<p class="lcp_excerpt">La lista per ricevere ed inviare SOLO ed unicamente notizie di EVENTI, incontri pubblici (culturali, sociali, ecc) nella zona del Garda e provincia.</p></li></ul>
    
    </div><!-- .entry-content --></div><!-- #post-256 --></div><!-- .leaf-content -->
    </div><!-- .headway-leaf-inside -->
    </div><!-- #leaf-109 -->

    The code generated by the plugin starts with <ul class="lcp_catlist">, and as you can see, the ul is correctly closed. The second time the content is displayed exactly the same, but with a different id:
    <div class="content box-no-title fluid-height headway-leaf" id="leaf-110">
    Is there some special feature on your theme that might be causing this? Can you show the code to your page's template?

  3. forumcivico
    Member
    Posted 3 years ago #

    Hello Mr. Fernando,

    You are of course absolutely right. The reason was the theme was displaying twice the content of the page.

    I did check that before posting here and I did not notice it. I should have used your logical procedure: looking at the source code!

    I am sorry to have taken your time. At least I had the chance to speak with you!

    Your plugin is definitely the best in its category. Kudos!

  4. fernandobt
    Member
    Plugin Author

    Posted 3 years ago #

    Ok, glad I could help out! It's great to know people find the plugin usefull. No problem on taking my time, giving support is part of developing the plugin (You could consider a donation if you want to further help the development :D ).

    Thanks for using List Category Posts!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic