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
<ol> | |
<?php | |
// This will back create the response counts and generate some random visit counts | |
// for a Daily blank site. Insert into the magic spot of page-debug.php, go to /debug on your | |
// site, let it do its work, then remove. | |
$args = array( | |
'posts_per_page' => -1, | |
'post_type' => 'post', |
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
unction gdrive_shortcode( $atts, $content = null ) { | |
// options for different kinds of embeds, default is folder view | |
extract( shortcode_atts( array( "what" => "folder"), $atts)); | |
switch ($what) { | |
case 'folder': | |
return '<iframe src="https://drive.google.com/embeddedfolderview?id=' . $content . '#list" frameborder="0" width="100%" height="500px" scrolling="auto"> </iframe>'; | |
break; | |
case 'somethingelse': |
NewerOlder