I make a ul
menu in wordpress like this:
<li><a href="<?php get_page_link(); ?>?show=game" class="android-prim-menu-active">بازی ها</a></li>
<li><a href="<?php get_page_link(); ?>?show=app">app</a></li>
<li><a href="<?php get_page_link(); ?>?show=request">request</a></li>
<li><a href="<?php get_page_link(); ?>?show=report">report</a></li>
<li><a href="<?php get_page_link(); ?>?show=last">live</a></li>
Now, every of these links send a GET
request to current page and I want to handle content with received values from GET
request.
How do i use GET
method in wordpress? Can I use $_GET["show"]
and receive my values?
Thanks...
Use
$_GET["show"]
method and you can
echo $_GET["show"]
this and you will get the value
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.