This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Template Name: Search1 | |
*/ | |
get_header(); ?> | |
<form id="searchform" action="" method="get"> | |
<input class="" type="text" name="serchprm" id="searchinput" placeholder="Search"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$pterms = get_terms( array( | |
'taxonomy' => 'product_cat', | |
'parent' => 0 | |
) ); | |
// echo '<pre>'; | |
// var_dump($terms); | |
foreach ($pterms as $myterm) { | |
$term_link = get_term_link( $myterm ); | |
$thumbnail_id = get_woocommerce_term_meta($myterm->term_id, 'thumbnail_id', true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Abbreviation: cpt | |
Description: custom post type | |
<?php | |
/** | |
* Register Post Type $cpt$ | |
*/ | |
add_action( 'init', 'codex_$cpt$_init' ); | |
function codex_$cpt$_init() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Template Name: Test | |
* Created by PhpStorm. | |
* User: PC35 | |
* Date: 23-12-2016 | |
* Time: 10:32 | |
*/ | |
?> | |