U
U
Urushi Go2015-11-19 14:17:21
PHP
Urushi Go, 2015-11-19 14:17:21

How to display page by slug in wordpress?

How to display a page using PHP if the data only has a slug?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Borisovich, 2015-11-19
@Alexufo

get_page_by_path
https://codex.wordpress.org/Function_Reference/get...

G
Grisha Nikolsky, 2015-11-19
@VoxelGod

If you understood correctly, then this article will help you a lot.
More specifically: pagename query parameter query parameter .
Well, if you are not familiar with WP_Query, then you should read all the articles in this cycle. Or their original on Tuts+

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question