There are 3 pages of wordpress:

http://107.170.21.244/wp2/?page_id=4

http://107.170.21.244/wp2/?p=7

http://107.170.21.244/wp2/?p=1

The task is to write, in the functions.php file, a function that, depending on the GET parameter, displays different content on these pages. I hope all described is available.

Closed due to the fact that off-topic participants kizoso , Jean-Claude ,, AK , rdorn Nov 13, '17 at 8:12 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • " Learning tasks are allowed as questions only on the condition that you tried to solve them yourself before asking a question . Please edit the question and indicate what caused you difficulties in solving the problem. For example, give the code you wrote, trying to solve a problem "- kizoso, Jean-Claude
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • 2
    No, not available. Tell us what you really want. - AntonioK

1 answer 1

you have 3 different GET requests, even by default it should show different entries or pages, without adding something in functions.php

  • one
    I can assume that the questioner has to redirect calls to /wp2/?page_id=X on functions.php . But your answer has already been accepted, and this is strange (after all, it does not solve the author's problem, but simply states the fact). - ߊߚߤߘ