IMPORTANT!

Snipt is going open source. We've toyed with this idea for quite a while, and have finally decided it's the right way to move forward.

A few things:
  • The entire Snipt source code will be released on GitHub under the 3-clause BSD License on Friday, September 10th.
  • While we'd like to think we're perfect, we realize we're only human. By open sourcing the software that runs this website, certain bugs or security flaws may be discovered that could compromise the privacy of your snipts.
  • Only the Lion Burger team will be able to push commits to the Snipt.net site. Contributors should send a pull request to add new features or submit patches.
  • By using this site, you agree not to be too angry or take any legal action against Lion Burger should this whole thing go up in flames some day.
  • Follow us on Twitter for updates.
I agree, close this message
Sign up to create your own snipts, or login.

Latest 100 public snipts » estupendos's snipts The latest snipts from estupendos.

showing 1-4 of 4 snipts
  • Cambiar un valor por otro en una base de datos MySQL
    UPDATE wp_postmeta SET meta_value=(REPLACE (meta_value, '/home/.filofax/super45/super45.cl/images/', ''));
    

    copy | embed

    0 comments - tagged in  posted by estupendos on Jan 15, 2010 at 11:13 a.m. EST
  • Como hacer un listado de categorías en Wordpress, excluyendo algunas
    <?php
    foreach((get_the_category()) as $cat) {
    if ($cat->cat_ID != "60" )
    if ($cat->cat_ID != "70" )
    if ($cat->cat_ID != "71" )
    if ($cat->cat_ID != "72" ) {
    echo '<a href="/?cat=' . $cat->cat_ID . '"> ' .
    $cat->cat_name . '</a> ';
    }
    }
    ?>
    

    copy | embed

    0 comments - tagged in  posted by estupendos on Jan 15, 2010 at 11:10 a.m. EST
  • Loop para listar hijos de un page de Wordpress
    <?php $paginas = get_pages('child_of=1'); ?>
    <?php foreach($paginas as $pagina): ?>
      <?php if (have_posts()) : ?>
        <?php query_posts("page_id=$pagina->ID"); ?>
        <?php while (have_posts()) : the_post(); ?>
          <?php the_content('Read the rest of this entry &raquo;'); ?>
        <?php endwhile; ?>
      <?php else : ?>
      <?php endif; ?>
      <?php wp_reset_query(); ?>
    <?php endforeach; ?>
    

    copy | embed

    3 comments - tagged in  posted by estupendos on Jan 15, 2010 at 11:08 a.m. EST
  • como crear un loop
    <?php query_posts(array('category_name' => 'qwerty', 'posts_per_page' => 5));
    if (have_posts()): while(have_posts()): the_post(): ?>
    
    // el contenido 
    
    <?php else: ?>
    no existe nada
    <?php endif; endwhile; ?>
    

    copy | embed

    0 comments - tagged in  posted by estupendos on Jan 15, 2010 at 11:08 a.m. EST
Sign up to create your own snipts, or login.