How to list all posts in a category in Wordpress?

Asked

Viewed 3,421 times

0

I have a site made in Wordpress where I see his posts on the site, ok?

The links work, but I have a category that calls "TIPS".

On the page dominio.com/dicas tips posts do not open. How to do this? Remembering that a post in the URL dominio.com/dicas/meu-post-aqui works!

But I want the link dominio.com/dicas show only posts from category tips. I don’t know how to do.

So I would like to make a page listing all posts in a particular category. I don’t have a page on wp-admin, only categories.

  • The question is not about programming, but I believe that we can accept these questions, because questions that go much further than this have already been very well accepted

  • 1

    @Rodrigoborth, what questions ? Take them to the finish line.

3 answers

1

The address to list all posts in a category is www.example.com/category/dicas, but it is not very recommended to remove the base /category/ of Urls. For example, a category wp-admin can block access to the administrative panel; and other conflicts can occur when the site has many posts/pages and the permanent link structure is defined as /%postname%/. Use the plugin Monkeyman Rewrite Analyzer to check possible conflicts (the plugin is not updated for more than two years, but this is no problem, the author is a player).

If you use the Wordpress plugin SEO by Yoast, it has this functionality:

The plugin WP No Category Base is usually recommended too.

0

An option, but maybe not so good would be you create in the administration the Tips Page, and then create the page-tips.php file where you could do your Wp_query passing as argument to category_name = tips.

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.