List of posts
-
Hi
I would like to know if is possible to dislay a list of posts that is larger of 100.
I am using this code:
[display-posts category="A" posts_per_page="-1" order="ASC" orderby="title" wrapper="ol"]
to create a index list of lyrics published on my site
https://cartedecantari.wordpress.com/My problem is that it is not displayind more then 100 posts name in my list of posts.
Hope someone is willing to give an advice :)
The blog I need help with is: (visible only to logged in users)
-
Hi,
I would like to know if is possible to dislay a list of posts that is larger of 100.
Not with the display posts shortcode.
limits of some widget options:
Archives widget — no limit
Recent Posts widget — 150
Display Posts Shortcode in text widget — 100 -
-
I stand corrected. There is, or at least there was in August 2013, a workaround which allows you to increase the limit in the shortcode. See the workaround suggested by Happiness Engineer kardotim in the topic Display posts shortcode with a strange limitation?
kardotim provides the following example code wherein the limit is increased to 200:
[display-posts offset="100" posts_per_page="200"]
And notes that,You can simply increase the number 200 in the shortcode :)
-
It is working to increase to 200, what it is enough for what i need…
But I would like to keep the alphabetical order and display on one page only the the posts that is starting whit ”A” or another letter..
If could be possible to combine these codes somehow …
[display-posts offset="100" posts_per_page="200"]
and[display-posts category="A" posts_per_page="-1" order="ASC" orderby="title" wrapper="ol"]
I realy like to keep the alphabetical order and in the same time increase from 100 post to 200.
-
Yes, try this:
[display-posts category="A" order="ASC" orderby="title" wrapper="ol" offset="100" posts_per_page="200"] -
It is not working with this code…
[display-posts category="A" order="ASC" orderby="title" wrapper="ol" offset="100" posts_per_page="200"]
It is displaying only 33 of 134 posts.
-
You have 134 posts in category “A”? I don’t know what might be causing the incomplete display. You may add a “modlook” tag to the sidebar of this topic to call for staff attention.
-
If I use this code
[display-posts category="A" posts_per_page="-1" order="ASC" orderby="title" wrapper="ol"]
will apear 100 posts titles, but when I use this one[display-posts category="A" order="ASC" orderby="title" wrapper="ol" offset="100" posts_per_page="200"]is displaying only 33..
-
I understand. But previously you said,
It is working to increase to 200, what it is enough for what i need…
which means, I think, that
[display-posts offset="100" posts_per_page="200"]
worked, right?I don’t know why the combination doesn’t work. Perhaps the offset tag doesn’t work properly when combined with assorted other tags in the code.
-
Correction:
“Offset” is not a “tag.” I don’t know what the proper term is. It’s used in what WordPress calls an “argument” in the code. -
It is right, this code works
[display-posts offset="100" posts_per_page="200"]
but I need to order the list alphabetically to create a index to be easy to search a title in it.Thanks for help, I had added a modlook to this topic.
Hope to find the answer. -
Yes, I understood. I meant by “the combination doesn’t work” that adding the category and other arguments might be causing the code that includes the offset=”100″ to fail. I expected it to work, and don’t know why it doesn’t work.
I hope staff will be able to resolve the issue.
-
You could experiment by subtracting only the argument “category=”A” (or any of the other additional arguments) from the code to see if this might be causing the failure.
-
-
The Display Posts Shortcode has a limit of 100 posts displayed. This can’t be overcome.
https://en.support.wordpress.com/display-posts-shortcode/The reason you’re seeing an incomplete list, I believe, is that the “offset” parameter will skip over the first N posts. They won’t be part of the list at all.
-
@ chrisrudski,
There is a workaround for display posts shortcode, which allows you to exceed 100 posts displayed. As I’ve noted above, the workaround was pointed out by staff member kardotim in the August 2013 forum topic Display posts shortcode with a strange limitation?
The workaround, an example of which is given as
[display-posts offset="100" posts_per_page="200"]
worked for quartettblog, the original poster in the “strange limitation” topic, and it worked for bisericapenticostaladinbergen, the OP here, who said above,It is right, this code works
[display-posts offset="100" posts_per_page="200"]However, when that code is expanded to include a category argument, the code fails to work properly. That is a summary of what we’ve covered in this topic thus far.
-
I have tryed again this code
[display-posts offset="100" posts_per_page="200"]and actually doesn’t work…:-S
Thank you for yours answers so far.
-
@doc:
There is a workaround for display posts shortcode, which allows you to exceed 100 posts displayed.
I’d avoid using “workarounds”. We limit the number of posts that can be displayed for performance reasons. It’s also worth considering if there’s a better way to organize the content. (Custom menus, tag clouds, and so on.) Users are unlikely to go through a list of hundreds of links.
when that code is expanded to include a category argument, the code fails to work properly
The shortcode appears to work properly, but there’s an issue with how the “offset” parameter is being used. For example, if you set the “offset” parameter to 100, your list of links will skip the first 100 posts.
- The topic ‘List of posts’ is closed to new replies.