recentpopularlog in

laurakalbag : wordpress   360

« earlier  
WordPress in court victory over blogger censored by 'Straight Pride UK'
“After a two-year legal battle, journalist Oliver Hotham and Automattic, owners of blogging service Wordpress.com, have emerged victorious against an attempt to use an American copyright law to shut down criticism of a short-lived pressure group call ‘Straight Pride UK’.” By Alex Hern on The Guardian
censorship  takedown  regulation  dmcatakedown  wordpress  automattic  blogging  indie  indieroundup  13mar15 
march 2015 by laurakalbag
A Guide to WordPress Custom Taxonomy
<?php echo term_description( '', get_query_var( 'taxonomy' ) ); ?>
wordpress  taxonomy  customposttype  customtaxonomy  custom  posttype  archive 
february 2012 by laurakalbag
WordPress › Support » Use Category Slug as link ID?
<ul>
<?php
$args = array(
'taxonomy' => 'regions',
'orderby' => 'ID',
'hierarchical' => 1,
'echo' => 0,
'title_li' => ''
);

$categories = get_categories($args);

foreach($categories as $category) {
?>
<li class='<?php echo $category->slug; ?>'>
<a href='<?php echo get_category_link($category->cat_ID); ?>'><?php echo $category->name; ?></a>
</li>
<?php
}
?>
</ul>
wordpress  category  slug  as  link  id  theme 
february 2012 by laurakalbag
Add Post Class if Post has thumbnail | WordPress Snippets
// add class if post has thumbnail
function has_thumb_class($classes) {
global $post;
if( has_post_thumbnail($post->ID) ) { $classes[] = 'has_thumb'; }

return $classes;
}
add_filter('post_class', 'has_thumb_class');
post  class  thumbnail  featured  image  wordpress  functions.php 
february 2012 by laurakalbag
How to Add Custom Post Type Icons | WordPress Theming
// Styling for the custom post type icon
 
add_action( 'admin_head', 'wpt_portfolio_icons' );
 
function wpt_portfolio_icons() {
    ?>
    <style type="text/css" media="screen">
        #menu-posts-portfolio .wp-menu-image {
            background: url(<?php bloginfo('template_url') ?>/images/portfolio-icon.png) no-repeat 6px 6px !important;
        }
    #menu-posts-portfolio:hover .wp-menu-image, #menu-posts-portfolio.wp-has-current-submenu .wp-menu-image {
            background-position:6px -16px !important;
        }
    #icon-edit.icon32-posts-portfolio {background: url(<?php bloginfo('template_url') ?>/images/portfolio-32x32.png) no-repeat;}
    </style>
<?php }
customposttype  wordpress  icons  menuicons 
july 2011 by laurakalbag
Shortcode in a Template
<?php echo do_shortcode("[shortcode]"); ?>
shortcode  wordpress  template  theme 
may 2011 by laurakalbag
Display WordPress content outside your blog // Corvid Works
<?php
// Include WordPress
define('WP_USE_THEMES', false);
require('./wordpress/wp-load.php');
query_posts('showposts=1');
?>
display  wordpress  content  outside  templates 
march 2011 by laurakalbag
« earlier      
per page:    204080120160

Copy this bookmark:





to read