Query for tag given slug
Hi @JM at Work: Like this: $term_slug = ‘foo’; $term_object = get_term_by( ‘slug’, $term_slug, ‘post_tag’ ); print_r( $term_object );
Hi @JM at Work: Like this: $term_slug = ‘foo’; $term_object = get_term_by( ‘slug’, $term_slug, ‘post_tag’ ); print_r( $term_object );
it is just a question of translating the jquery ui tabs markup into the appropriate wordpress functions. text is the_title() or the_excerpt(). images are the_post_thumbnail and so on. put this in your template where you want the slider to appear: // Get any existing copy of our transient data if ( false === ( $featured_query_results … Read more
In the page editor switch to HTML mode and wrap each section of content around divs you want to be a column. <div class=”col2w col2a”>Col 1</div> <div class=”col2w col2b”>Col 2</div> <div class=”col3w col3a”>Col 1</div> <div class=”col3w col3b”>Col 2</div> <div class=”col3w col3c”>Col 3</div> Next use CSS to style them to look like columns.
In your header.php $images = getSliderImages(); foreach ( $images as $img ) { echo ‘<img src=”‘ .$img. ‘” />’; }
Yes it is possible to create templates for different categories and tags for posts you can also use a plugin like this http://wordpress.org/extend/plugins/custom-post-background/ If you look at (for example) http://woothemes.com – then their free theme it already has a blog, portfolio and photo gallery templates for you. This might help you to see what is … Read more
If you want to do that yourself, take a look at function add_meta_box (don’t forget the examples). That page has almost everything you need to create a custom meta box for a certain post type. If you want to simplify your work, you might want to use an utility like Meta Box plugin. This plugin … Read more
You can create capabilities for each custom post type and add this to the different roles; see this answer from an question here.
Move the custom post types to a plugin. They should never be part of a theme for exactly the reason you asked here. 🙂 In your theme add just the needed template files, but not the code for post type registration.
The following line is incorrect as showposts is deprecated. $recent = new WP_Query(“showposts=30”); Instead use, $recent = new WP_Query(‘posts_per_page=30’); Following that, Does the thumbnail size of 80×80 exist? array(80,80) If not try any of, $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), small ); $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), medium ); $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), large ); Remember each of … Read more
You can use a couple known plugins. TYPES and VIEWS, by wp-types.com. Please keep in mind that I am in no way, shape, or form affiliated with these plugins or plugin authors. Also, please note, the TYPES plugin is free, and the VIEWS plugin is premium. You will not be able to receive support for … Read more