Title image is missing ( but is not the WP 3.5 issue )

you can try this filter add_filter(‘wp_get_attachment_image_attributes’, ‘my_img_title’, 10, 2); function my_img_title($attr, $attachment = null){ $attr[‘title’] = get_post($attachment->ID)->post_title; return $attr; } It should give the the extra title attribute in the img tag. You can also use the ‘post_thumbnail_html’ filter to edit the html output. ps: here is a similar question: Display info from custom fields … Read more

Option to feature custom post type on home page

First, you’ll want a quick way to toggle whether a post is featured or not. I wrote a plugin that does this: http://wordpress.org/extend/plugins/featured-item-metabox/ but I feel like a total dork because I just discovered that this plugin was already doing that! http://wordpress.org/extend/plugins/featured-post Ugh. Anyway, how you want to feature them on the home page will … Read more

Display thumbnail of child, parent and ancestor using featured thumbnails

I think you can use a different approach: write a custom sql query that get the ids of the thumbnails attachment of the children pages, and if found call wp_get_attachment_image_src on this ids to retrieve the urls: function my_get_thumbnails( $post = NULL, $which=”both” ) { // first we get the post, if no post is … Read more

Featured posts and the loop

A simple approach could be to use a global array in which you will store posts that are selected in the featured query. You could set this array in your functions.php or index.php : $featured_post_array = array(); Then in your featured.php file first call the global array somewhere in the beginning: global $featured_post_array; and inside … Read more

how do i make this loop work

You should clean it up some more but this will fix your code: <?php get_header(); ?> <div class=”posts”><!– BLOG –> <!– Shapes on sides –> <div class=”shapes_left”> </div> <div class=”shapes_right”> </div> <?php if (is_tag()) { ?> <div id=”archive_title”> <h1><?php single_tag_title(); ?></h1> <?php }?> </div> <div id=”featured_home”> <?php $counter = 0; while ( have_posts() ) { … Read more