[태그:] wordpress php

  • 워드프레스 PHP 결과값 받는 방법

    워드프레스 PHP 결과값 받는 방법

      ▼ ▼ ▼ 내가 선택한 결과 ▼ ▼ ▼       내가 선택한 결과를 포스트 (글)로 전달 할수 있습니다. 템플릿 페이지는 아래처럼 세팅 <?php /* Template Name: Custom Page Template – PHP */ get_header(); global $wp; if(isset($_REQUEST[‘submit’])) { if(isset($_REQUEST[‘selectValue’])) { $new_query = add_query_arg( array(‘sel’ => $_POST[‘selectValue’]), get_permalink(126) ); wp_redirect( $new_query ); exit; }…