A
A
Alexey2020-03-16 22:03:49
open server
Alexey, 2020-03-16 22:03:49

How to make a page with tags at /tags/ in Wordpress? And how to assign an image to tags?

1. I want to display a list of tags on the page /tags/ (standard slug for tags, for example, /tags/one - page for tag one). Now it gives 404 error. How to fix?
2. How to attach an image to a tag? What would display a list of tags with a preview?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2019-08-13
@dimonchik2013

run as admin

S
Sergey Chernukhin, 2020-03-17
@preslilvs

1. The list of tags can be displayed using a special plugin https://wordpress.org/plugins/cool-tag-cloud/
The standard url for displaying the contents of the one tag is /tag/one
2. Install ACF, create a group of fields for tags in it
5e7065b432d89868629968.png
Then create the field itself, Field Type - Image.
Next, customize the template for displaying tags in your theme, you need to add the output code for the image field that you created above.
For example, the template for displaying tags in the twentyseventeen theme is contained here:
/wp-content/themes/twentyseventeen/inc/template-tags.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question