wordpressArquivo de

Ajax Aplicações Banco de Dados Blog Blogs Celular CRM Curso Linux Ubuntu Online Código Fonte ERP Java Linux Noticias PHP Ruby on Rails Twitter videos Virtualização WordPress

Inclua o jQuery do google no seu WordPress

Substitua a URL com a localização de qual versão do jQuery você deseja usar. Links para a versão mais recente do jQuery nos servidores do Google (v1.4) .Teoricamente eu acho que vai continuar a ser a versão mais recente, até o jQuery 2.0


if( !is_admin()){
   wp_deregister_script('jquery');
   wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false, '1.3.2');
   wp_enqueue_script('jquery');
}

Como incluir qualquer arquivo no seu tema WordPress

Simples maneira de incluir um arquivo php no seu tema wordpress


<?php include (TEMPLATEPATH . '/menu-arquivo.php'); ?>

Como adicionar link para sites de Social Media no WordPress

Coloque este código no arquivo single.php do seu tema o wordpress. Dentro do loop

// bookmark on Delicious
<a rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink(); ?>&amp;title=<?php echo urlencode(get_the_title($id)); ?>" title="Bookmark this post at Delicious">Bookmark at Delicious</a>

// submit to Digg
<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink(); ?>" title="Submit this post to Digg">Digg this!</a>

// tweet on Twitter
<a rel="nofollow" href="http://twitter.com/home?status=<?php echo urlencode("Currently reading: "); ?><?php the_permalink(); ?>" title="Share this article with your Twitter followers">Tweet this!</a>

// submit to StumbleUpon
<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&amp;title=<?php echo urlencode(get_the_title($id)); ?>" title="Share this post at StumbleUpon">Stumble this!</a>

// share on Facebook
<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&amp;t=<?php echo urlencode(get_the_title($id)); ?>" title="Share this post on Facebook">Share on Facebook</a>

// submit to Blinklist
<a rel="nofollow" href="http://blinklist.com/index.php?Action=Blink/addblink.php&amp;url=<?php the_permalink(); ?>&amp;Title=<?php echo urlencode(get_the_title($id)); ?>" title="Share this post on Blinklist" >Blink This!</a>

// store on Furl
<a rel="nofollow" href="http://furl.net/storeIt.jsp?t=<?php echo urlencode(get_the_title($id)); ?>&amp;u=<?php the_permalink(); ?>" title="Share this post on Furl">Furl This!</a>

// submit to Reddit
<a rel="nofollow" href="http://reddit.com/submit?url=<?php the_permalink(); ?>&amp;title=<?php echo urlencode(get_the_title($id)); ?>" title="Share this post on Reddit">Share on Reddit</a>

Como alterar o tamanho do avatar nos comentários do WordPress

A função wp_list_comments tem um parâmetro para alterar o padrão (48px) tamanho para algo entre 0 e 80px.

wp_list_comments ('avatar_size = 80');

Como criar um Tag Cloud no WordPress

Como criar um tag could no wordpress, de forma simples

<?php wp_tag_cloud( array(

    'smallest' => 8,          // tamanho da menor fonte a ser utilizada
    'largest'  => 22,         // tamanho da maior fonte a ser utilizada
    'unit'     => 'px',         // escolha como será o dimensionamento  (pt, em, px, etc)
    'number'   => 45,       // Número máximo de tags para mostrar
    'format'   => 'flat',      // flat, list, or array. flat = spaces between; list = in li tags; array = does not echo results, returns array
    'orderby'  => 'name',   // forma de ordenação name = alfanumerico por name; count = por popularidade
    'order'    => 'ASC',      // starting from A, or starting from highest count
    'exclude'  => 12,         // ID's de tags para excluir
    'include'  => 13,         // ID's of tags to include, displays none except these
    'link'     => 'view',     // view = links to tag view; edit = link to edit tag
    'taxonomy' => 'post_tag', // post_tag, link_category, category - create tag clouds of any of these things
    'echo'     => true        // set to false to return an array, not echo it

) ); ?>

Como mostrar informações do autor no WordPress

A imagem do autor que trata esta vinculada do seu endereço de email no site Gravatar. O nome de exibição vêm da área de configurações do usuário na administração.


<div class="author-box">
   <div class="author-pic"><?php echo get_avatar( get_the_author_email(), '80' ); ?></div>
   <div class="author-name"><?php the_author_meta( "display_name" ); ?></div>
   <div class="author-bio"><?php the_author_meta( "user_description" ); ?></div>
</div>

Page 2 of 6123456