Skip to content

Instantly share code, notes, and snippets.

{foreach $items as $item}
{$item->title}
{$item->url}
{/foreach}
function pods_in_head(){
global $promos;
$promos = pods('discount_code');
}
add_action('wp_head', 'pods_in_head');
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());
{"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":[
[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
<?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!";
<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>
<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>
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"
{foreach $recent_posts as $recent}
{$recent->post_title}
{/foreach}
{$recent|@print_r}