WordPress.org

Ready to get started?Download WordPress

Forums

[plugin: Advanced Post List] ignores more-Tag when accesing excerpt (7 posts)

  1. pft
    Member
    Posted 2 years ago #

    Hi

    I created a list of N most recent posts and wanted to use the excerpt to display them instead of the content. But when I access the page the excerpt shows text beyond the more-tag.
    Any ideas how I could quick fix this? To me it looks rather like a bug which should be fixed inside the plugins code itself.

    Regards

  2. jokerbr313
    Member
    Posted 2 years ago #

    Shouldn't be happening cause i use the same method. Could you link what you have in the Before, Content, and After settings please.

  3. pft
    Member
    Posted 2 years ago #

    Before:
    <div class="apl-post-listing">

    Content:

    <div class="apl-post-entry">
    <div class="apl-post-title"><a href="[post_permalink]">[post_title]</a> <span class="apl-post-title-add">von [post_author] am [post_date_gmt format="d.m.Y"]</span></div>
    <div class="apl-post-image"><img src="[post_thumb]"></div>
    <div class="apl-post-content">[post_excerpt]</div>
    </div>

    After:
    </div>

    The post contains the following section: zu entgehen.<!--more-->Bilder
    but Bilder appears in the listing.

    Plugin Version 0.1.1 and WP 3.2.1

  4. jokerbr313
    Member
    Posted 2 years ago #

    Still not completely sure. Hard to tell without experiencing it first hand. 1) it sounds like its displaying html code. or 2) an accidental loop possibly?

    If its the first one then its expected to happen. I personally use manual excepts when I have html code show up in the except.

  5. pft
    Member
    Posted 2 years ago #

    1) the post contained the an img tag. I removed all html, only the "more" tag remains. But still it ignores the more tag.

    2) I am using some other plugins, but no self coded stuff. So I can't say anything about loops.

  6. pft
    Member
    Posted 2 years ago #

    I took a look in the code of the plugin. To me it looks as if an excerpt is taken if present and if not one is manually created out of the content. Shortcodes will be stripped but that's all (file: APLCallback.php line:40-58).
    Am I missing the part where the more tag is used?

  7. jokerbr313
    Member
    Posted 2 years ago #

    Ok...I just woke up, and I'm squeezing in this reply before i have to go to work. So, bare with me.

    Yea, the except works the way you had explained. I took a quick look into the more tag, and remembered that I tried using the tag with wordpress at one time. It seems that the more tag works fine when you use content shortcode, but not with the excerpt shortcode, correct? I haven't look too much into the issue yet, but i have noticed that the excerpt displays 'raw' content instead of the way it was intended to display. So some of html code in the page/post tend to sneak in.

    For creating a more tag. Why not use more to create a link?

    Anyways, I gotta go. I'll check back on this sometime 8 hours from now. I'll have more spare time then as well.

Topic Closed

This topic has been closed to new replies.

About this Topic