• Resolved dolunaykiz

    (@dolunaykiz)


    I have installed this plugin on an internal server, so I cannot post a link to the page in question. I have a page with an assigned category of “X”. I have created a test post, also with the same category. No matter what parameters I insert, the plugin creates this from the shortcode:

    * <POST TITLE> Excerpt
    * <LINK TO PAGE> Page title in plain text

    I do not want or need the second bullet point. What do I need to use in order to get rid of it? As it is, this is unusable for me.

    Thanks!

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter dolunaykiz

    (@dolunaykiz)

    Anybody? Please? I’m about to see if I can find a better plugin without this bug. I have no idea why it’s displaying that way, and there is nothing in the documentation that I can find.

    Thread Starter dolunaykiz

    (@dolunaykiz)

    I figured it out, but this is something that should be better documented. Somehow it inserted this as an element with an ID of “post-1234”, so when I set the CSS to “display:none;” the whole thing disappeared. However, now I will have to do that on every single page where I’m trying to insert this. ??

    Thread Starter dolunaykiz

    (@dolunaykiz)

    Scratch that – that hides the entire list. WTH?

    Thread Starter dolunaykiz

    (@dolunaykiz)

    I cannot set the display to none for ANY of the CSS used in this case, b/c it’s meant to be a link back to the original page, but styled like another post. That is just not usable.

    Plugin Contributor zymeth25

    (@zymeth25)

    Hi

    Please share the exact shortcode you used as well as a screenshot of the result.

    The generated html would also be useful.

    Thanks

    Thread Starter dolunaykiz

    (@dolunaykiz)

    The following shortcode used to create an “extra” post at the very beginning of the list, which is essentially only a link back to the page and does not really do anything else. It also doesn’t show up in the list of regular posts, and therefore it cannot be deleted:

    [catlist ID=77,79 morelink=”(More)” thumbnail=yes thumbnail_size=50,50 thumbnail_class=lcp_thumbnail numberposts=5 title_class=lcp_title title_tag=h3 date=yes date_tag=span date_class=lcp_date]

    You will hate me, but all of a sudden that “mock” post is gone. Not sure what changed.

    Plugin Contributor zymeth25

    (@zymeth25)

    Well, generally the LCP plugin runs a post query and returns exactly what you asked for. So if you say there was an extra bullet point, it means there must have been a post in the database that matched your parameters and therefore got displayed.

    Where that post came from is another issue.

    Thread Starter dolunaykiz

    (@dolunaykiz)

    OK, so another report. It seems OK in the normal post list now. However, I am also using the shortcode in the right side bar as a widget:

    [catlist ID=77,79 excerpt=yes excerpt_size=25 morelink=”(MORE)” title_class=lcp_title title_tag=h5 date=yes date_tag=span date_class=lcp_date_widget]

    This produces the predicted 10 posts as a list, plus an extra one at the very end that really is a link to the main page where they all live. Any idea why it is doing this?

    Thanks!

    Plugin Contributor zymeth25

    (@zymeth25)

    Can you double check if the page itself, the one where the posts live, doesn’t have categories assigned of ids 77 or 79?

    Thread Starter dolunaykiz

    (@dolunaykiz)

    It has 79 assigned.

    Thread Starter dolunaykiz

    (@dolunaykiz)

    I need to keep the categories consistent.

    Thread Starter dolunaykiz

    (@dolunaykiz)

    Also, I should mention that 77 is a child of 79.

    Thread Starter dolunaykiz

    (@dolunaykiz)

    OK, so I figured out what was causing it. Normally, pages don’t get categories or tags, unless you install a plugin for exactly this reason. That plugin will attach what would technically be a POST category to a page, same with tags. If you then search for posts to display in a particular category, you’ll inevitably get the PAGES as well.

    Plugin Contributor zymeth25

    (@zymeth25)

    The LCP plugin does not list pages or any other post types other than “post” by default. This means that even if you have a cateogry X assigned to a page, [catlist name="X"] will not display it.

    But if you are using a plugin that changes this behavior and makes WordPress treat pages like posts, then the LCP plugin will act accordingly.

    You can try the excludeposts parameter, according to the docs:

    excludeposts – IDs of posts to exclude from the list. Use ‘this’ to exclude the current post. Ex: [catlist excludeposts=this,12,52,37]

    Try exludeposts=this in your shortcode

    • This reply was modified 6 years, 5 months ago by zymeth25.
Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Post list double?’ is closed to new replies.