Answer the question
In order to leave comments, you need to log in
How to create a dynamic page in Wordpress?
There is a site on Wordpress, for example , siteonwordpress.ru , and everything is cool
. There is a server, server.ru/id=1 , which gives an individual html code depending on n, which we need to get and display at
siteonwordpress.ru/magazine1
There are a
lot of magazines. What is the best way to organize such a scheme?
Answer the question
In order to leave comments, you need to log in
Create your own template for the page. And you insert a frame there, as Ivan Kozlov wrote .
You make the url of the page, for example, /magazine
. And you pass the number n
as a GET parameter (you can configure something like ) in htaccess /magazine/1
).
Why only do this on Wordpress?
Why a frame? There is wp_remote_get() and wp_remote_retrieve_body() for getting content from an external page. It can even be cached (and in most cases it is necessary) through transients.
https://codex.wordpress.org/Function_API/wp_remote...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question