WordPress.org

Ready to get started?Download WordPress

Forums

Page-list
[resolved] Limit content & more tag (25 posts)

  1. Borislav
    Member
    Posted 2 years ago #

    It seems the "more tag" content limiting does not work. I don't have a demo page, as I'm working on a local network site, but it's easy to reproduce.

    I think if I set the strip_tags="0" I can see the "more tag" working, but, of course, that messes up the whole layout, as other tags bleed from the subpages onto the current page.

    http://wordpress.org/extend/plugins/page-list/

  2. webvitaly
    Member
    Plugin Author

    Posted 2 years ago #

    I added now support for more tag in Page-list plugin in version 2.9.
    You may update it and test it. More tag feature is working by default and shortcode is showing content only before more tag.
    If you want to disable it, you may use this shortcode: [pagelist_ext more_tag="0"].
    Please, write me back if it worked fine.

  3. Borislav
    Member
    Posted 2 years ago #

    Yes, it works now, thank you for the swift reaction!

    You might want to add another "feature": the more-tag should have precedence over limit_content. If a page has a more-tag, it should display the whole content up to the more-tag, regardless of the limit_content value. If a page does not have a more-tag, follow the limit_content value.

    Have a nice day!

    ps: In a future version I can see some kind of logic, similar to the nested styles in InDesign. For example, limit the content up to the 3rd paragraph, or up to the 5th ";"

  4. webvitaly
    Member
    Plugin Author

    Posted 2 years ago #

    Great.

    the more-tag should have precedence over limit_content

    I am thinking about it. For now I left it independent and everyone could combine it for own needs. But in future it will be more logical.

    limit the content up to the 3rd paragraph

    I will think about it.

    P.S. I saw your topic accidentally :) It is bad, that emails does not sending automatically to plugin authors with topic creation. And WordPress developers answered to me, that this is feature and not a bug :) But now I am subscribed to this topic so everything is great now, I can see replies to this topic immediately.

  5. jdev
    Member
    Posted 2 years ago #

    Guys, the more-tag isnt working. Please check it here: http://www.warbirdconsulting.com/our-team/executive-team

    Here's my code:
    [pagelist_ext child_of="45" image_width="100" image_height="100" include="154,158,208,161,212" sort_column="menu_order" limit_content="200" more_tag="0"]

    Thanks for the great support.

    PS. Im using wp 3.3.1

  6. Borislav
    Member
    Posted 2 years ago #

    If your MORE tag is after the limit_content value - it won't work. That's what I suggested for a future release in my last comment.

  7. jdev
    Member
    Posted 2 years ago #

    I tried it both ways... but it doesnt work.

  8. webvitaly
    Member
    Plugin Author

    Posted 2 years ago #

    2 jdev:
    I have few questions:

    1. what you expected to be shown by the shortcode?
    2. what is not good for your opinion?
    3. where do you have more-tag? After 200 symbols or before?
  9. webvitaly
    Member
    Plugin Author

    Posted 2 years ago #

    2 jdev:

    P.S. Try this shortcode:

    [pagelist_ext child_of="45" image_width="100" image_height="100" include="154,158,208,161,212" sort_column="menu_order" limit_content="200" more_tag="0" strip_tags="0"]

    I added strip_tags="0".

  10. jdev
    Member
    Posted 2 years ago #

    Still not working my friend. I decided to hardcode the read more link instead. I hope you could address this issue on your next update. Its a great plugin nonetheless. Thanks again for your support.

  11. jdev
    Member
    Posted 2 years ago #

    1. I expect to see the "Read More" at the end of the excerpt.
    2. I think the plugin is great but it has that read more bug.
    3. I tried it both ways but its really not working.

  12. webvitaly
    Member
    Plugin Author

    Posted 2 years ago #

    2 jdev:
    There is no ability to add "more" link to the end of the content.
    I think, that nobody will search your site with the word "more". :)
    I am not planning for now to add "more-link" in future. I think, it is not right.

    Pagelist plugin now shows content before "more-tag" if more_tag="1" and if it is in page content and after this text "..." is added.

  13. jdev
    Member
    Posted 2 years ago #

    I know nobody will search that word. But thats what the client wants. :)

  14. webvitaly
    Member
    Plugin Author

    Posted 2 years ago #

    2jdev:

    1. you could explain it to client and educate him;
    2. if client will still want this feature (as they always do :) ), than you could add this by yourself; You also should change the version to ver.100 (for example) for avoid updating plugin, what could override your code;

    I think, "more-link" is not good functionality for SEO and this is also extra not needed element on page.
    Title or image is the link to detailed page and this is enough for user.
    I think, there is no need to add not needed code to plugin.
    I am trying to keep plugin's code lite and clean.

  15. jdev
    Member
    Posted 2 years ago #

    Ok, thanks. I will try to tell him this.

  16. webvitaly
    Member
    Plugin Author

    Posted 2 years ago #

    2 BobyDimitrov:

    I updated Page-list plugin to version 3.1. I added "more_tag" higher priority than "limit_content" as we discussed. Please, could you update it and test it?
    Write me back if you will find some bugs.

    P.S. I added your name to changelog

  17. jooooooon42
    Member
    Posted 2 years ago #

    Hi webvitaly,

    I just tested this out, but now with version 3.1, my descriptions end with "###more###". Sometimes, this is truncated, like "###mo".

    My exact config is: [pagelist_ext parent=20 show_image=0 depth=1 more_tag=1 strip_tags=1]

    Any ideas? Thanks!

  18. webvitaly
    Member
    Plugin Author

    Posted 2 years ago #

    2jooooooon42:
    can you send me the link with the problem to my email?

  19. Borislav
    Member
    Posted 2 years ago #

    Tested higher priority "more_tag" - works as expected. Thanks!

  20. jkirchartz
    Member
    Posted 2 years ago #

    Just wanted to say that the "more_tag" code uses mb_strpos which isn't a default-enabled function for PHP. you have to specifically turn it on or install it, and it causes some trouble without it. If it's not enabled it will give a fatal error and stop rendering the page. This problem is easily fixed as explained in this question on stackoverflow and only happens when using the plugin with the more tag.

  21. nigrantonio
    Member
    Posted 1 year ago #

    Me too, with simple [pagelist_ext show_image="0"] it shows "###mor" instead of "Read more" classic button. I'm with 3.5 and last plugin version.

  22. webvitaly
    Member
    Plugin Author

    Posted 1 year ago #

    @nigrantonio: imho maybe you have old php on your hosting.

    p.s. There is no "read more" button in Pagelist plugin. "more_tag" param means for shortcode to ignore or not the more-tag in content. You may read about it in Pagelist documentation. Article about why more-tag is bad.

  23. nigrantonio
    Member
    Posted 1 year ago #

    Yes, I know...anyway:
    I'm on my server with PHP 5.x and more_tag is OK in other pages, but when I use your tag [pagelist_ext] to show subpages, text is less than without more tag, but after stop first <p> it shows me ###mor instead of nothing (or classic "Leggi altro").

  24. webvitaly
    Member
    Plugin Author

    Posted 1 year ago #

    @nigrantonio: I am not from Italy :) I am from Ukraine.
    'webvitaly' means 'web+vitaly'. 'Vitaly' is the name like 'Vitaly Klitschko'.

    As I can understand - 'Pinuccio' means 'plugin' in italian. And 'Leggi altro' means 'read more'. Awesome language, words sound great.

    Write me feedback with more details and I will check it. In english please ;)

    About 'more-link': yeah, it is kinda 'my-way', but I really believe that it will be good for everyone :)

  25. nigrantonio
    Member
    Posted 1 year ago #

    Sorry, it was simply a citation from our famous song...
    http://it.youtube.com/watch?v=pSL4Z7FYGbU
    ...to close off-topic!

    P.S. Now we can continue via feedback page.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags