This file contains hidden or 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
{foreach $items as $item} | |
{$item->title} | |
{$item->url} | |
{/foreach} |
This file contains hidden or 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
function pods_in_head(){ | |
global $promos; | |
$promos = pods('discount_code'); | |
} | |
add_action('wp_head', 'pods_in_head'); |
This file contains hidden or 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
global $smarty; | |
$value = get_option( 'discount_code_code' ); | |
$desc = get_option( 'discount_code_desc' ); | |
$smarty->assign('value', $value); | |
$smarty->assign('desc', $desc); | |
return $this->display(__FILE__, 'wpheader.tpl', $this->getCacheId()); |
This file contains hidden or 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
{"meta":{"version":"2.3.3.1","build":1367109777},"pods":{"974":{"type":"taxonomy","object_hierarchical":false,"field_parent":"parent","field_parent_select":"`tt`.`parent`","pod_field_slug":null,"pod_field_parent":null,"where_default":null,"object_fields":{"name":{"id":0,"name":"name","label":"Title","description":"","help":"","default":null,"attributes":[],"class":"","type":"text","group":0,"grouped":0,"developer_mode":false,"dependency":false,"depends-on":[],"excludes-on":[],"options":[],"alias":["title"]},"slug":{"id":0,"name":"slug","label":"Permalink","description":"","help":"","default":null,"attributes":[],"class":"","type":"slug","group":0,"grouped":0,"developer_mode":false,"dependency":false,"depends-on":[],"excludes-on":[],"options":[],"alias":["permalink"]},"description":{"id":0,"name":"description","label":"Description","description":"","help":"","default":null,"attributes":[],"class":"","type":"wysiwyg","group":0,"grouped":0,"developer_mode":false,"dependency":false,"depends-on":[],"excludes-on":[ |
This file contains hidden or 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
[28-Apr-2013 02:14:23 UTC] {"object_type":"pod","type":"pod","object_name":"","object_hierarchical":false,"table":"wp_pods_team","meta_table":"wp_pods_team","pod_table":"wp_pods_team","field_id":"id","field_index":"name","field_slug":"slug","field_type":null,"field_parent":null,"field_parent_select":null,"meta_field_id":"id","meta_field_index":"name","meta_field_value":"name","pod_field_id":"id","pod_field_index":"name","pod_field_slug":"slug","pod_field_parent":null,"join":[],"where":null,"where_default":null,"orderby":"`t`.`name`, `t`.`id`","recurse":true,"id":727,"name":"team","label":"Team Members","description":"","options":{"show_in_menu":"1","pod_index":"name","detail_url":"team\/{@slug}\/","old_name":"team","label_singular":"Team Members","label_add_new":"","label_add_new_item":"","label_new_item":"","label_edit":"","label_edit_item":"","label_update_item":"","label_view":"","label_view_item":"","label_all_items":"","label_search_items":"","label_not_found":"","label_not_found_in_trash":"","label_popu |
This file contains hidden or 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 | |
$referring_url = get_post_meta($post->ID, 'referring_url', true); | |
$referring_url_name = get_post_meta($post->ID, 'referring_url_name', true); | |
$downloads = get_post_meta($post->ID, 'download_location', true); | |
$downloads_name = get_post_meta($post->ID, 'download_name', true); | |
$contact = get_post_meta($post->ID, 'contact_name', true); | |
$contact_url = get_post_meta($post->ID, 'contact_url', true); | |
if(empty($referring_url) && empty($downloads) && empty($contact)){ | |
//echo "foo!"; |
This file contains hidden or 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
<div id="primary" class="content-area"> | |
<div id="content" class="site-content" role="main"> | |
<?php if(have_posts()) : ?> | |
<?php while(have_posts()) : the_post();?> | |
<?php $files = get_post_meta($post->ID, 'file_upload', true); | |
$video_source = get_post_meta($post->ID, 'video_source', true); | |
?> | |
<div class="entry"> | |
<h1><?php the_title() ?></h1> |
This file contains hidden or 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
<div id="primary" class="content-area"> | |
<div id="content" class="site-content" role="main"> | |
<?php if(have_posts()) : ?> | |
<?php while(have_posts()) : the_post();?> | |
<?php $files = get_post_meta($post->ID, 'file_upload', true); | |
$video_source = get_post_meta($post->ID, 'video_source', true); | |
?> | |
<div class="entry"> | |
<h1><?php the_title() ?></h1> |
This file contains hidden or 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
array(23) { | |
["ID"]=> string(3) "256" | |
["post_author"]=> string(1) "1" | |
["post_date"]=> string(19) "2013-05-07 20:57:22" | |
["post_date_gmt"]=> string(19) "2013-05-07 20:57:22" | |
["post_content"]=> string(0) "" | |
["post_title"]=> string(23) "How to Add New Products" | |
["post_excerpt"]=> string(0) "" | |
["post_status"]=> string(7) "inherit" | |
["comment_status"]=> string(4) "open" |
This file contains hidden or 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
{foreach $recent_posts as $recent} | |
{$recent->post_title} | |
{/foreach} | |
{$recent|@print_r} |