Skip to content

Instantly share code, notes, and snippets.

/**
* Retrieve variable in the WP_Query class.
*
* @see WP_Query::get()
* @since 1.5.0
* @uses $wp_query
*
* @param string $var The variable key to retrieve.
* @return mixed
*/
public function hookDisplayFooter(){
global $wp_registered_sidebars, $wp_registered_widgets;
var_dump($wp_registered_sidebars);
var_dump($wp_registered_widgets);
function get_dynamic_sidebar($index = 1)
{
$sidebar_contents = "";
ob_start();
dynamic_sidebar($index);
$sidebar_contents = ob_get_clean();
public function hookDisplayHeader(){
if( !defined( 'WP_USE_THEMES' ) )
define('WP_USE_THEMES', true);
include_once('/home/bscdevel/public_html/wirerackblog/wp-load.php');
return '<link rel="stylesheet" type="text/css" media="all" href="'. get_stylesheet_uri() . '">';
do_action( 'init' );
}
{foreach $recent_posts as $recent}
{$recent->post_title}
{/foreach}
{$recent|@print_r}
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"
<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>
<?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!";
[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
{"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":[