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 | |
include_once("wp-config.php"); | |
include_once("wp-load.php"); | |
include_once("wp-includes/wp-db.php"); | |
?> |
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 | |
/** | |
* @author marcelo toscano <[email protected]> | |
* Essas configurações vão dentro dentro do wp-config.php | |
*/ | |
//define o usuário | |
define('FTP_USER','usuario'); | |
//define a senha | |
define('FTP_PASS','senha'); | |
//define qual seu host |
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 | |
/** | |
* @package RedRokk | |
* @version 1.0.0 | |
* | |
* Plugin Name: Empty Widget | |
* Description: Single Widget Class handles all of the widget responsibility, all that you need to do is create the html. Just use Find/Replace on the Empty_Widget keyword to rebrand this class for your needs. | |
* Author: RedRokk Interactive Media | |
* Version: 1.0.0 | |
* Author URI: http://www.redrokk.com |
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 | |
// Posts per page on CPT | |
function cs_custom_posts_per_page_CPT( $query ) { | |
switch ( $query->query_vars['post_type'] ) { | |
case 'album-de-fotos': | |
$query->query_vars['posts_per_page'] = 9; | |
break; | |
case 'loja': | |
$query->query_vars['posts_per_page'] = 15; | |
break; |
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
<? // reference http://codex.wordpress.org/Function_Reference/wp_list_pages | |
$args = array( | |
'depth' => 1, | |
'date_format' => get_option('date_format'), | |
'child_of' => get_the_ID(), | |
'title_li' => __(''), | |
'echo' => 1); | |
wp_list_pages($args); | |
?> |
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
<? | |
$args = array( | |
'meta_key' => '_thumbnail_id' | |
); | |
query_posts($args); | |
?> |
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
<? | |
//change showposts for posts-per-page if you a are running a newest version of wordpress | |
$args = array('showposts' => 10,'meta_query' => array(array('key' => 'featured_image','value' => '','compare' => '!='))); | |
$result = new WP_Query( $args ); | |
?> |
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
<? | |
//change showposts for posts-per-page if you a are running a newest version of wordpress | |
$args = array('showposts' => 10,'meta_query' => array(array('key' => 'featured_image','value' => '','compare' => '!='))); | |
$result = new WP_Query( $args ); | |
?> |
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
background: url(images/image.jpg) no-repeat center center fixed; | |
-webkit-background-size: cover; | |
-moz-background-size: cover; | |
-o-background-size: cover; | |
background-size: cover; | |
background-color:#ffffff; |
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 | |
/* | |
Plugin Name: Custom Field Shortcodes | |
Plugin URI: http://trepmal.com/2010/12/including-custom-fields-inside-your-post/ | |
Description: Include a custom field in your post with a shortcode. [cf name=custom_field] | |
Author: Kailey Lampert | |
Version: 1.0 | |
Author URI: http://kaileylampert.com/ | |
*/ | |
/* |
NewerOlder