Skip to content

Instantly share code, notes, and snippets.

View jpcontrerasv's full-sized avatar
🏠
Working from home

Juan Pablo Contreras Valdés jpcontrerasv

🏠
Working from home
View GitHub Profile
@jpcontrerasv
jpcontrerasv / Reemplazos base de datos.sql
Created July 30, 2014 14:53
Reemplazos base de datos
UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldsiteurl.com', 'http://www.newsiteurl.com') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = REPLACE (guid, 'http://www.oldsiteurl.com', 'http://www.newsiteurl.com');
UPDATE wp_posts SET post_content = REPLACE (post_content, 'http://www.oldsiteurl.com', 'http://www.newsiteurl.com');
http://www.onextrapixel.com/2010/01/30/13-useful-wordpress-sql-queries-you-wish-you-knew-earlier/
<?php the_time('j'); ?> de <?php the_time('F'); ?> del <?php the_time('Y'); ?>
<?php the_time('M'); ?> <?php the_time('d'); ?>, <?php the_time('Y'); ?>
=
Day of Month
d Numeric, with leading zeros 01–31
QJF7-L4IX-UCNP-RF2W
//en el wp-config ultima linea
define('FS_METHOD','direct');
@jpcontrerasv
jpcontrerasv / Página de opciones.txt
Created July 30, 2014 14:53
Página de opciones
OPN8-FA4J-Y2LW-81LS
@jpcontrerasv
jpcontrerasv / Redirect After Submission.php
Created July 30, 2014 14:53
Redirect After Submission
Additional Settings
on_sent_ok: "location = 'http://example.com/';"
http://contactform7.com/redirecting-to-another-url-after-submissions/
.circle {
border-radius: 50%;
width: 200px;
height: 200px;
/* width and height can be anything, as long as they're equal */
}
@jpcontrerasv
jpcontrerasv / Enlistar taxonomas.php
Last active April 5, 2021 17:51
Enlistar taxonomías
https://www.ibenic.com/display-terms-custom-wordpress-taxonomy/
<?php
//list terms in a given taxonomy (useful as a widget for twentyten)
$taxonomy = 'tipos-de-tiendas';
$tax_terms = get_terms($taxonomy);
?>
<ul>
<?php
<?php echo do_shortcode("[shortcode]"); ?>
@jpcontrerasv
jpcontrerasv / Contact Form 7 Shortcode.php
Last active April 14, 2016 20:15
Contact Form 7 Shortcode
<?php echo do_shortcode( '[contact-form-7 id="1234" title="Contact form 1"]' ); ?>