Want to display post titles
-
Is there a way to get my monthly archives to display a list of the post titles when you click on the month? Right now when you click on a moth it just takes you there, and the reader must scroll down for a long time to see all the posts. I’d like the reader to see a list of the titles so they know if something interests them.
The blog I need help with is: (visible only to logged in users)
-
Hi Tertia, there isn’t a way to display only post titles when the month is selected in the Archives.
We have a shortcode you might want to experiment with, which generates lists of posts manually:
If you use the
include_excerpt="true"parameter only an excerpt of the post will be displayed, instead of the full post.Just let me know if you need further help.
-
Do you mean using the shortcode to generate lists on a separate page, not the archives widget? And where do I put the parameter about the excerpts?
The impression I get is that you are talking about a separate page of archives. I can do that, if that is what it takes. but I guess I need to learn about these codes. -
The impression I get is that you are talking about a separate page of archives.
That’s correct, it would be a separate page of archives that you’d create manually.
-
Ok, I tried creating a page. Where do I type this shortcode and how do I get it to do something? It’s treating it as text. I tried in both types of Editors. I know I’m really ignorant, but I’m missing something!
-
I’m not seeing anything on your draft Archives page at the moment:
https://notthissong.wordpress.com/wp-admin/post.php?post=302&action=edit
Did you save the draft?
You would add something like this:
[display-posts include_excerpt="true"] -
OK, I tried it again. with and then without the excerpt…I actually don’t need the excerpt.
But when I look at the preview, a. it only displays 10 posts and b. it’s in a really weird type face. -
As you can see on the shortcode information page, if you don’t specify a number, the list of archives defaults to 10 posts. If you’d like more posts to be displayed, feel free to choose a higher number by following the shortcode examples on the information page.
For example:
[display-posts posts_per_page="100"]The archives list is automatically wrapped in pre and code tags, which is displayed in that font in your current theme. You can modify the look and feel of pre and code tags using CSS.
If you need help with the specific CSS, feel free to post in our CSS Customization forum.
- The topic ‘Want to display post titles’ is closed to new replies.