pmala84
pmala84

Reputation: 21

How can I create a wordpress detail page?

I've a Wordpress site page (5.7 version) called Ranking with all athletes showed (url = "https://example.com/ranking"). For every athletes showed I create a button link for display all athlete details. What I would like is that by clicking button (for example athleteId=2352), the page to open will be = "https://example.com/athlete/2352. How can I create athlete page? Do I change only permalink? Do I Have to rewrite my theme rules? Thanks

Upvotes: 0

Views: 54

Answers (1)

Zencode.dk
Zencode.dk

Reputation: 1364

Look into creating a custom post type for the purpose. You should then have control of rewrite rules, archive slug etc.

https://developer.wordpress.org/reference/functions/register_post_type/

And as ed2 mentions, please be more clear in your questions. It makes it easier to help out, and more useful for others with the same issue as yourself

Upvotes: 0

Related Questions