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 | |
$url = "http://{site_url}/service/v4_1/rest.php"; | |
$username = "admin"; | |
$password = "password"; | |
//function to make cURL request | |
function call($method, $parameters, $url) | |
{ | |
ob_start(); |
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 | |
$url = "http://{site_url}/service/v4_1/rest.php"; | |
$username = "admin"; | |
$password = "password"; | |
function call($method, $parameters, $url) | |
{ | |
ob_start(); | |
$curl_request = curl_init(); |
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
$connected = new WP_Query( array( | |
'connected_type' => 'proyectos_a_sectores', | |
'connected_items' => get_post($post->post_parent), | |
'nopaging' => true, | |
) ); |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
redirectMatch 301 ^(.*)$ http://www.$1 | |
</IfModule> |
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 | |
define('DB_NAME', ''); | |
define('DB_USER', 'root'); | |
define('DB_PASSWORD', 'root'); | |
define('WP_HOME', 'http://.loc/'); | |
define('WP_SITEURL', 'http://.loc/'); | |
define('DB_HOST', 'localhost'); | |
define('FS_METHOD','direct'); | |
define('WP_DEBUG', true); |
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
<script type="application/javascript"> | |
(function ($) { | |
}(jQuery)); | |
</script> |
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 | |
//In functions .php | |
function my_connection_types() { | |
p2p_register_connection_type( array( | |
'name' => 'posts_to_pages', | |
'from' => 'post', | |
'to' => 'page' | |
) ); | |
} | |
add_action( 'p2p_init', 'my_connection_types' ); |
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
/*Media Queries*/ | |
@media only screen and (min-width: 801px) and (max-width: 980px) { | |
} | |
@media only screen | |
and (min-device-width : 768px) | |
and (max-device-width : 1024px) | |
and (orientation : portrait) { | |
} | |
@media only screen |
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
User-agent: * | |
Allow: / | |
Sitemap: http:///sitemap_index.xml | |
Disallow: /wp-admin/ | |
Disallow: /?s= | |
Disallow: */?orderby= | |
Disallow: /search | |
Disallow: */feed/* | |
Disallow: /*?* |