A Guide to WordPress Custom Taxonomy
february 2012
<?php echo term_description( '', get_query_var( 'taxonomy' ) ); ?>
wordpress
taxonomy
customposttype
customtaxonomy
custom
posttype
archive
february 2012
WordPress › Support » Use Category Slug as link ID?
february 2012
<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
<?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>
february 2012
Add Post Class if Post has thumbnail | WordPress Snippets
february 2012
// 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
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');
february 2012
24ways
3.0
@font-face
accessibility
accounts
admin
ajax
analytics
app
archive
avatar
background
backgrounds
body
browser
brushes
business
carousel
change
chart
cheatsheet
checklist
class
clean
clients
cms
coda
code
colour
columns
comment
comments
content
copy
copywriting
create
cross-browser
css
css3
custom
customposttype
customtaxonomy
data
database
date
design
designresources
dev
development
device
dummy
dummytext
editor
email
emulator
experience
fields
fix
flexible
flexibleweb
fluid
font
fonts
form
forms
framework
free
freeagent
freelance
function
functions
functions.php
gallery
generator
google
graphic
graphics
grid
guide
hacks
hacs
hacs?
hide
hooks
html
html5
icon
icons
ie
ie6
image
imagereplacement
images
input
inspiration
interaction
interface
ios4
ipad
iphone
iphone4
javascript
jquery
layout
link
lipsum
list
loading
local
login
logo
lorem
loremipsum
mac
marketing
matt
mediaqueries
menu
meta
metabox
microformats
mobile
mobileweb
move
name
navigation
newthinking
opensource
opera
optimisation
page
pages
password
pattern
patterns
photo
photoshop
photoshoptutorials
PHP
pickingfonts
placeholder
plugin
plugins
png
pods
post
postimage
posts
posttype
print
process
professional
projectmanagement
psd
reference
remove
repeating
reset
resize
resources
responsive
rss
safari
saveforweb
scheme
screencast
script
search
security
seo
shoutbox
showcase
sidebar
site
slider
social
software
standards
style
subversion
support
svn
symbols
table
tags
taxonomies
taxonomy
template
templates
terminal
test
testing
text
texture
textures
theme
themes
thumbnail
time
tips
tool
tools
tutorial
tutorials
twitter
type
typekit
typography
ui
url
usability
useful
user
ux
video
visualisation
web
webdesign
webfonts
webresources
webvsprint
widget
widgets
width
wireframes
wordpress
wordpress3.0
wordpressresources
work