S
S
simonnidze2016-03-25 14:21:37
WordPress
simonnidze, 2016-03-25 14:21:37

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

2 answer(s)
Y
Yakov Vylegzhanin, 2016-03-25
@vylegzhanin

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 nas a GET parameter (you can configure something like ) in htaccess /magazine/1).
Why only do this on Wordpress?

I
Igor Vorotnev, 2016-03-25
@HeadOnFire

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 question

Ask a Question

731 491 924 answers to any question