Skip to content
View Dianakc's full-sized avatar
🏠
Working from home
🏠
Working from home

Block or report Dianakc

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Modificando a classe do link "readmore" Modificando a classe do link "readmore"
    1
    <?php
    2
    
                  
    3
    function dkc_change morelink_class( $link, $text )
    4
    {
    5
        return str_replace(
  2. author_with_microdata author_with_microdata
    1
    <?php
    2
    $author_name = get_the_author_meta('display_name');
    3
    ?>
    4
    
                  
    5
    <div>
  3. Remove um ou mais nomes de categoria... Remove um ou mais nomes de categorias de the_category
    1
    <?php
    2
    
                  
    3
    function the_category_filter($thelist,$separator=' ') {
    4
    	if(!defined('WP_ADMIN')) {
    5
    
                  
  4. Obtém os itens do menu de um theme l... Obtém os itens do menu de um theme location. Ex: pega os itens que estão no menu Rodapé, não os itens de menu baseando-se no menu que tiver criado.
    1
    <?php
    2
    
                  
    3
    	$menuParameters = array(
    4
    	  'theme_location' => 'menu_d', // o nome do local! De quando se cria locais!	
    5
    	  'container'       => false,
  5. Modifica a ordem dos posts na listagem Modifica a ordem dos posts na listagem
    1
    <?php
    2
    
                  
    3
    function sort_categories_by_title($x) {
    4
        if (is_category()) { //can set specific ones
    5
            $x->query_vars['orderby'] = 'title';
  6. Adiciona uma classe especial para o ... Adiciona uma classe especial para o primeiro post em um loop
    1
    <?php
    2
    
                  
    3
    function mark_first_post( $classes )
    4
    {
    5
        remove_filter( current_filter(), __FUNCTION__ );