making a page that contains all posts with a given tag
-
I’m trying to make a page that has the same content as http://www.example.com/tag/tag_name.
I understand this URL already exists and is visible, but I would like to have it easily accessible, on the same level as a ‘home’ and ‘posts’ page.
Thanks!! -
Hi there,
For this you need to create a blog post block. You can add either the Blog Posts block or Latest Posts block. You can find these by going to insert a block, then typing either ‘blog posts’ or ‘latest posts’ in the search bar (Blog Posts can be found under the Layout Elements heading; Latest Posts under the Widgets heading). These blocks work in the same way but look slightly different (at least in my experience).
Once you’ve done this, you’ll need to set the block to only show posts with a specific tag. Select the Blog/Latest Posts block and open the Block Settings (the cog icon in the top right-hand corner). Scroll down to Display Settings and add the tags you want to include here. For this to work, you’ll need to have added these tags to the posts, too.
To add a tag to a post, go to the post you want to add it to, go to tags in the Document Settings, and add the tag. (You can also create new ones under Add New Tag.) You can see this at https://wordpress.com/support/posts/tags/#adding-tags-via-the-tags-module.
I hope this helps!
-
Hi,
That was very helpful, thanks!
The only issue with this is, the aesthetics behind the .com/tag/tag_name are nice, and dont exist with the “posts block” option.
Thanks for the “posts” option, if there’s nothing better, this option may suffice.Cheers!
-
In terms of the ‘.com/tag/tag_name’ being better, you could try changing the permalink of the page to ‘tag_name’.
The way you change a permalink is by going to the page you want to edit (in this case the tag page with the posts block), and opening the document settings. You can change the permalink (URL slug) under the Permalink heading.
You can read more about permalinks at https://wordpress.org/support/article/writing-posts/#post-field-descriptions -
Thanks for the suggestion.
Alas, if only I could get that method to work.
After changing the permalink to the page to __.com/tag/tag_name, wordpress converts it to __.com/tag-tag_name.
I cannot find a way to change the slug of the auto-generated url __.com/tag/tag_name. If I could, I might be able to change it to __.com/tag_name and maybe it would work then?Best!
-
I think the reason why it changes it from .com/tag/tag_name to .com/tag-tag_name is because the middle part of .com/tag/tag_name (i.e. the /tag/ part) would be referring to tag_name’s parent page.
For example, if on example.wordpress.com a page called Page A had a URL slug pagea, and Page B (Page A’s child page) had a URL slug pageb, the URL of Page B would be example.wordpress.com/pagea/pageb.I might be able to change it to __.com/tag_name
I would suggest this — making the URL slug ‘tag_name’, so the whole URL would be example.wordpress.com/tag_name.
- The topic ‘making a page that contains all posts with a given tag’ is closed to new replies.